package cpdf
Module Cpdftype
type element = | Text of char list| HGlue of float| VGlue of float| NewLine| NewPage| Font of string * Pdftext.font * float| BeginDest of Pdfdest.t * string option| EndDest| BeginDocument| Tag of string * int| EndTag
Experimental typesetter for cpdf
type t = element listval to_string : t -> stringDebug printing
val font_widths : string -> Pdftext.font -> float -> float arrayReturn the font width table for a given (id, font, fontsize) combination.
Calculate the widths of a string given a font width table, and list of char codes
val typeset :
process_struct_tree:bool ->
float ->
float ->
float ->
float ->
Pdfpaper.t ->
Pdf.t ->
t ->
Pdfpage.t list * (string * int) list listtypeset process_struct_tree lmargin rmargin tmargin bmargin papersize pdf contents builds a list of pages of typset content.