2024-03-04 16:16:14 +01:00
|
|
|
(** Cpdfcommand draw control *)
|
|
|
|
|
2023-09-26 18:51:56 +02:00
|
|
|
val embed_font : (unit -> Cpdfembed.cpdffont) ref
|
|
|
|
val getfontname : (unit -> string) ref
|
|
|
|
val getfontsize : (unit -> float) ref
|
2024-09-20 15:15:10 +02:00
|
|
|
val getindent : (unit -> float option) ref
|
2023-09-27 18:02:22 +02:00
|
|
|
val setfontname : (string -> unit) ref
|
|
|
|
val setfontsize : (float -> unit) ref
|
2023-10-04 16:07:29 +02:00
|
|
|
val setdrawing : (unit -> unit) ref
|
2023-10-05 17:45:11 +02:00
|
|
|
val setembedstd14 : (bool -> string -> unit) ref
|
2023-09-26 18:51:56 +02:00
|
|
|
val ttfs : (string, (string * Cpdfembed.cpdffont)) Hashtbl.t
|
2023-10-04 16:59:52 +02:00
|
|
|
val loadttf : (string -> unit) ref
|
|
|
|
val loadttfseparate : string -> string -> unit
|
2023-09-26 18:51:56 +02:00
|
|
|
val fontpack_initialised : bool ref
|
2023-09-01 20:09:23 +02:00
|
|
|
val drawops : (string * Cpdfdraw.drawops list) list ref
|
|
|
|
val addop : Cpdfdraw.drawops -> unit
|
2024-03-04 16:16:14 +01:00
|
|
|
val parse_colour : string -> Cpdfaddtext.colour
|
2024-09-15 19:53:59 +02:00
|
|
|
val addtag : string -> unit
|
|
|
|
val addstag : string -> unit
|
|
|
|
val endtag : unit -> unit
|
|
|
|
val endstag : unit -> unit
|
|
|
|
val autotags : bool -> unit
|
2024-09-18 16:31:24 +02:00
|
|
|
val addnamespace : string -> unit
|
2024-09-16 17:37:12 +02:00
|
|
|
val artifact : unit -> unit
|
|
|
|
val endartifact : unit -> unit
|
|
|
|
val autoartifacts : bool -> unit
|
2023-09-01 20:09:23 +02:00
|
|
|
val addrect : string -> unit
|
|
|
|
val addto : string -> unit
|
|
|
|
val addline : string -> unit
|
|
|
|
val addbezier : string -> unit
|
|
|
|
val addbezier23 : string -> unit
|
|
|
|
val addbezier13 : string -> unit
|
|
|
|
val addcircle : string -> unit
|
|
|
|
val setstroke : string -> unit
|
|
|
|
val setfill : string -> unit
|
|
|
|
val stroke : unit -> unit
|
|
|
|
val fill : unit -> unit
|
|
|
|
val fillevenodd : unit -> unit
|
|
|
|
val strokefill : unit -> unit
|
|
|
|
val strokefillevenodd : unit -> unit
|
|
|
|
val clip : unit -> unit
|
|
|
|
val clipevenodd : unit -> unit
|
|
|
|
val closepath : unit -> unit
|
|
|
|
val setthickness : string -> unit
|
|
|
|
val setcap : string -> unit
|
|
|
|
val setjoin : string -> unit
|
|
|
|
val setmiter : string -> unit
|
|
|
|
val setdash : string -> unit
|
|
|
|
val push : unit -> unit
|
|
|
|
val pop : unit -> unit
|
|
|
|
val setmatrix : string -> unit
|
|
|
|
val setmtranslate : string -> unit
|
|
|
|
val setmrotate : string -> unit
|
|
|
|
val setmscale : string -> unit
|
|
|
|
val setmshearx : string -> unit
|
|
|
|
val setmsheary : string -> unit
|
|
|
|
val xobjbbox : string -> unit
|
|
|
|
val startxobj : string -> unit
|
|
|
|
val endxobj : unit -> unit
|
|
|
|
val usexobj : string -> unit
|
2024-03-26 21:02:41 +01:00
|
|
|
val addjpeg : ?data:Pdfio.rawbytes -> string -> unit
|
|
|
|
val addpng : ?data:Pdfio.rawbytes -> string -> unit
|
2024-09-11 14:57:57 +02:00
|
|
|
val addimage : ?title:string -> string -> unit
|
2023-09-01 20:09:23 +02:00
|
|
|
val addopacity : float -> unit
|
|
|
|
val addsopacity : float -> unit
|
|
|
|
val addbt : unit -> unit
|
|
|
|
val addet : unit -> unit
|
|
|
|
val addnewpage : unit -> unit
|
2023-09-24 17:45:07 +02:00
|
|
|
val addleading : float -> unit
|
|
|
|
val addcharspace : float -> unit
|
|
|
|
val addwordspace : float -> unit
|
|
|
|
val addtextscale : float -> unit
|
|
|
|
val addrendermode : int -> unit
|
|
|
|
val addrise : float -> unit
|
|
|
|
val addnewline : unit -> unit
|
2023-09-26 18:51:56 +02:00
|
|
|
val add_default_fontpack : string -> unit
|
|
|
|
val addtext : string -> unit
|
|
|
|
val addspecialtext : string -> unit
|
2024-09-12 17:08:05 +02:00
|
|
|
val addpara : string -> unit
|
2024-09-19 15:41:51 +02:00
|
|
|
val addparas : string -> unit
|
2024-03-04 16:16:14 +01:00
|
|
|
|
|
|
|
(** This the beginnings of separation between cpdfcommand and cpdfdraw when
|
|
|
|
drawing, for use in cpdflib. It is presently undocumented. *)
|