File: paper.mli

package info (click to toggle)
camlpdf 0.5-1
  • links: PTS, VCS
  • area: non-free
  • in suites: squeeze, wheezy
  • size: 1,516 kB
  • ctags: 2,689
  • sloc: ml: 18,229; ansic: 139; makefile: 139
file content (35 lines) | stat: -rw-r--r-- 872 bytes parent folder | download
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
(** Media Sizes *)

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

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

(** Project the unit from a paper size *)
val unit : papersize -> Units.unit

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

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

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

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

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