File: cpdfutil.mli

package info (click to toggle)
cpdf 2.9-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 7,140 kB
  • sloc: ml: 35,825; makefile: 66; sh: 49
file content (28 lines) | stat: -rw-r--r-- 918 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
22
23
24
25
26
27
28
(** Utilities *)

(** Turns Cpdf's progress-printing system on or off. *)
val progress : bool ref

(** Print a progress line. E.g "Loading file foo.pdf" with a newline. *)
val progress_line : string -> unit

(** Print a progres line with no line ending. *)
val progress_line_no_end : string -> unit

(** Begin page progress - prints the page number. *)
val progress_page : int -> unit

(** End page progress - prints a full stop. *)
val progress_endpage : unit -> unit

(** Print just a newline, for example when ending a page sequence. *)
val progress_done : unit -> unit

(** Remove a dictionary entry. *)
val remove_dict_entry : Pdf.t -> string -> Pdf.pdfobject option -> unit

(** Replace a dictionary entry. *)
val replace_dict_entry : Pdf.t -> string -> Pdf.pdfobject -> Pdf.pdfobject option -> unit

(** Check for injectible characters in a string, and error out if so. *)
val check_injectible : string -> unit