module Cpdfutil:sig..end
Utilities
val progress : bool Stdlib.refTurns Cpdf's progress-printing system on or off.
val progress_line : string -> unitPrint a progress line. E.g "Loading file foo.pdf" with a newline.
val progress_line_no_end : string -> unitPrint a progres line with no line ending.
val progress_page : int -> unitBegin page progress - prints the page number.
val progress_endpage : unit -> unitEnd page progress - prints a full stop.
val progress_done : unit -> unitPrint just a newline, for example when ending a page sequence.
val remove_dict_entry : Pdf.t -> string -> Pdf.pdfobject option -> unitRemove a dictionary entry.
val replace_dict_entry : Pdf.t -> string -> Pdf.pdfobject -> Pdf.pdfobject option -> unitReplace a dictionary entry.
val check_injectible : string -> unitCheck for injectible characters in a string, and error out if so.
type colour =
| |
Grey of |
| |
RGB of |
| |
CMYK of |
PDF colours
val colour_op : colour -> Pdfops.tBuild a colour operation for filling with the given colour.
val colour_op_stroke : colour -> Pdfops.tBuild a colour operation for filing with the given colour
type justification =
| |
LeftJustify |
| |
CentreJustify |
| |
RightJustify |
Justification of multiline text