package cpdf

  1. Overview
  2. Docs

Experimental typesetter for cpdf

type glue = {
  1. glen : float;
  2. gstretch : float;
}
type element =
  1. | Text of char list
  2. | HGlue of glue
  3. | VGlue of glue
  4. | NewLine
  5. | NewPage
  6. | Font of Pdftext.font * float
  7. | BeginDest of Pdfdest.t
  8. | EndDest
  9. | BeginDocument
type t = element list
val to_string : t -> string
val font_widths : Pdftext.font -> float -> float array
val width_of_string : float array -> char list -> float
val typeset : float -> float -> float -> float -> Pdfpaper.t -> Pdf.t -> t -> Pdfpage.t list