package cpdf

  1. Overview
  2. Docs
High-level PDF tools based on CamlPDF

Install

Dune Dependency

Authors

Maintainers

Sources

v2.6.tar.gz
md5=f69a01ef0f02a57d6c8e2e7b75984bca
sha512=482ffe027112d313f876758d83353c2952bf30e351748c2aa832f333da1683ad4adb813b6c3c87b77462b7da2922e38dd2d668bac6558ad315e1286a31446e1d

doc/cpdf/Cpdfposition/index.html

Module Cpdfposition

Positions

type position =
  1. | PosCentre of float * float
  2. | PosLeft of float * float
  3. | PosRight of float * float
  4. | Top of float
  5. | TopLeft of float * float
  6. | TopRight of float * float
  7. | Left of float
  8. | BottomLeft of float * float
  9. | Bottom of float
  10. | BottomRight of float * float
  11. | Right of float
  12. | Diagonal
  13. | ReverseDiagonal
  14. | Centre

Possible positions for adding text and other uses. See cpdfmanual.pdf

val string_of_position : position -> string

Produce a debug string of a position

val calculate_position : bool -> float -> (float * float * float * float) -> position -> float * float * float

calculate_position ignore_d w (xmin, ymin, xmax, ymax) orientation pos calculates the absolute position of text given its width, bounding box, orientation and position. If ignore_d is true, the distance from the position (e.g 10 in TopLeft 10) is ignored (considered zero).

OCaml

Innovation. Community. Security.