-
Notifications
You must be signed in to change notification settings - Fork 28
/
pdfdest.mli
30 lines (25 loc) · 1 KB
/
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
29
30
(** 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 (and actions) *)
type t =
| Action of Pdf.pdfobject
| NullDestination
| NamedDestinationElsewhere of string
| XYZ of targetpage * float option * float option * float option
| Fit of targetpage
| FitH of targetpage * float option
| FitV of targetpage * float option
| FitR of targetpage * float * float * float * float
| FitB of targetpage
| FitBH of targetpage * float option
| FitBV of targetpage * float option
(** 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
(** Transform a destination by a matrix *)
val transform_destination : Pdftransform.transform_matrix -> t -> t