cpdf-source/cpdftype.mli

18 lines
302 B
OCaml
Raw Normal View History

2021-11-18 11:09:09 -08:00
type text = int list
type glue =
{glen : float;
stretch : float}
2021-11-18 14:48:25 -08:00
type element =
2021-11-18 11:09:09 -08:00
Text of text
| HGlue of glue
| VGlue of glue
| NewLine
| NewPage
2021-11-18 14:48:25 -08:00
| Font of Pdftext.font * float
2021-11-18 11:09:09 -08:00
2021-11-18 14:48:25 -08:00
type t = element list
2021-11-15 17:42:17 -08:00
2021-11-18 14:48:25 -08:00
val typeset : float -> float -> float -> float -> Pdfpaper.t -> Pdf.t -> t -> Pdfpage.t list