File: pdfpaper.mli

package info (click to toggle)
camlpdf 2.9-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,272 kB
  • sloc: ml: 20,816; ansic: 9,525; makefile: 100; sh: 23
file content (36 lines) | stat: -rw-r--r-- 750 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
(** Media Sizes *)

(** A paper size consists of its unit, width and height. *)
type t

(** Make a paper size given its unit, width and height. *)
val make : Pdfunits.t -> float -> float -> t

(** Project the unit from a paper size *)
val unit : t -> Pdfunits.t

(** Project the width from a paper size. *)
val width : t -> float

(** Project the height from a paper size. *)
val height : t -> float

(** Flip a paper size between landscape and portrait, swapping its dimensions. *)
val landscape : t -> t

val a0 : t
val a1 : t
val a2 : t
val a3 : t
val a4 : t
val a5 : t
val a6 : t
val a7 : t
val a8 : t
val a9 : t
val a10 : t
(** ISO A series paper sizes, portrait. *)

val usletter : t
val uslegal : t
(** United States paper sizes. portrait. *)