cpdf-source/cpdfimpose.mli

14 lines
719 B
OCaml
Raw Permalink Normal View History

2022-01-13 17:18:54 +01:00
(** Imposition *)
2021-12-22 09:58:56 +01:00
2022-01-13 17:18:54 +01:00
(** Imposition. See cpdfmanual.pdf for details. *)
2021-12-22 09:58:56 +01:00
val impose : x:float -> y:float -> fit:bool -> columns:bool -> rtl:bool -> btt:bool -> center:bool -> margin:float -> spacing:float -> linewidth:float -> fast:bool -> Pdf.t -> Pdf.t
2022-01-13 17:18:54 +01:00
(** The legacy twoup_stack operation puts two logical pages on each physical page,
2021-12-22 09:58:56 +01:00
rotating them 90 degrees to do so. The new mediabox is thus larger. Bool true
(fast) if assume well-formed ISO content streams. *)
val twoup_stack : bool -> Pdf.t -> Pdf.t
2022-01-13 17:18:54 +01:00
(** The legacy twoup operation does the same, but scales the new sides down so that
2021-12-22 09:58:56 +01:00
the media box is unchanged. Bool true (fast) if assume well-formed ISO content streams. *)
val twoup : bool -> Pdf.t -> Pdf.t