2022-01-13 16:18:21 +01:00
|
|
|
(** Parsing coordinates, numbers, positions etc.*)
|
|
|
|
|
|
|
|
(** See cpdfmanual.pdf for examples of things these functions can parse, such as page sizes. *)
|
|
|
|
|
2022-12-01 18:21:13 +01:00
|
|
|
(** Read a single rectangles from a string. *)
|
|
|
|
val parse_rectangle : Pdf.t -> string -> (float * float * float * float)
|
|
|
|
|
2022-01-13 16:18:21 +01:00
|
|
|
(** Read a list of rectangles from a string. *)
|
2019-09-26 12:44:54 +02:00
|
|
|
val parse_rectangles : Pdf.t -> string -> (float * float * float * float) list
|
|
|
|
|
2022-01-13 16:18:21 +01:00
|
|
|
(** Read a coordinate from a string *)
|
2019-09-26 12:44:54 +02:00
|
|
|
val parse_coordinate : Pdf.t -> string -> float * float
|
|
|
|
|
2022-01-13 16:18:21 +01:00
|
|
|
(** Read a list of coordinates from a string *)
|
2019-09-26 12:44:54 +02:00
|
|
|
val parse_coordinates : Pdf.t -> string -> (float * float) list
|
|
|
|
|
2022-01-13 16:18:21 +01:00
|
|
|
(** Read a single number from a string *)
|
2019-09-26 12:44:54 +02:00
|
|
|
val parse_single_number : Pdf.t -> string -> float
|