forked from johnwhitington/camlpdf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpdfdest.mli
29 lines (23 loc) · 881 Bytes
/
pdfdest.mli
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
(** Destinations *)
(** The target of a destination is either a page object in the same PDF (given
by object number of page object), or a page number in an external file. *)
type targetpage =
| PageObject of int
| OtherDocPageNumber of int
(** Destinations. See ISO-32000 for details. *)
type t =
| NullDestination
| XYZ of targetpage * float option * float option * float option
| Fit of targetpage
| FitH of targetpage * float
| FitV of targetpage * float
| FitR of targetpage * float * float * float * float
| FitB of targetpage
| FitBH of targetpage * float
| FitBV of targetpage * float
(** Read a destination given a PDF and destionation object. *)
val read_destination : Pdf.t -> Pdf.pdfobject -> t
(** Write a destination to a [Pdf.pdfobject]. *)
val pdfobject_of_destination : t -> Pdf.pdfobject
(**/**)
val string_of_destination : t -> string