package camlpdf

  1. Overview
  2. Docs

Destinations

type targetpage =
  1. | PageObject of int
  2. | OtherDocPageNumber of int

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 t =
  1. | Action of Pdf.pdfobject
  2. | NullDestination
  3. | NamedDestinationElsewhere of string
  4. | XYZ of targetpage * float option * float option * float option
  5. | Fit of targetpage
  6. | FitH of targetpage * float option
  7. | FitV of targetpage * float option
  8. | FitR of targetpage * float * float * float * float
  9. | FitB of targetpage
  10. | FitBH of targetpage * float option
  11. | FitBV of targetpage * float option

Destinations (and actions)

val read_destination : Pdf.t -> Pdf.pdfobject -> t

Read a destination given a PDF and destionation object.

val pdfobject_of_destination : t -> Pdf.pdfobject

Write a destination to a Pdf.pdfobject.

val transform_destination : Pdftransform.transform_matrix -> t -> t

Transform a destination by a matrix

OCaml

Innovation. Community. Security.