File: cpdfcoord.mli

package info (click to toggle)
cpdf 2.9-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,140 kB
  • sloc: ml: 35,825; makefile: 66; sh: 49
file content (21 lines) | stat: -rw-r--r-- 850 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
(** Parsing coordinates, numbers, positions etc.*)

(** See cpdfmanual.pdf for examples of things these functions can parse, such as page sizes. *)

(** Read a single rectangles from a string. *)
val parse_rectangle : Pdf.t -> string -> (float * float * float * float)

(** Read a list of rectangles from a string. *)
val parse_rectangles : Pdf.t -> string -> (float * float * float * float) list

(** Read a coordinate from a string *)
val parse_coordinate : Pdf.t -> string -> float * float

(** Read a list of coordinates from a string *)
val parse_coordinates : Pdf.t -> string -> (float * float) list

(** Parse some numbers from a string, converting their units e.g "16mm 12pt". *)
val parse_units_string : Pdf.t -> Pdfpage.t -> string -> float list

(** Read a single number from a string *)
val parse_single_number : Pdf.t -> string -> float