camlpdf

Read, write and modify PDF files
Module Pdfops
val debug : bool ref
type t =
| Op_w of float
| Op_J of int
| Op_j of int
| Op_M of float
| Op_d of float list * float
| Op_ri of string
| Op_i of int
| Op_gs of string
| Op_q
| Op_Q
| Op_cm of Pdftransform.transform_matrix
| Op_m of float * float
| Op_l of float * float
| Op_c of float * float * float * float * float * float
| Op_v of float * float * float * float
| Op_y of float * float * float * float
| Op_h
| Op_re of float * float * float * float
| Op_S
| Op_s
| Op_f
| Op_F
| Op_f'
| Op_B
| Op_B'
| Op_b
| Op_b'
| Op_n
| Op_W
| Op_W'
| Op_BT
| Op_ET
| Op_Tc of float
| Op_Tw of float
| Op_Tz of float
| Op_TL of float
| Op_Tf of string * float
| Op_Tr of int
| Op_Ts of float
| Op_Td of float * float
| Op_TD of float * float
| Op_Tm of Pdftransform.transform_matrix
| Op_T'
| Op_Tj of string
| Op_TJ of Pdf.pdfobject
| Op_' of string
| Op_'' of float * float * string
| Op_d0 of float * float
| Op_d1 of float * float * float * float * float * float
| Op_CS of string
| Op_cs of string
| Op_SC of float list
| Op_sc of float list
| Op_SCN of float list
| Op_scn of float list
| Op_SCNName of string * float list
| Op_scnName of string * float list
| Op_G of float
| Op_g of float
| Op_RG of float * float * float
| Op_rg of float * float * float
| Op_K of float * float * float * float
| Op_k of float * float * float * float
| Op_sh of string
| InlineImage of Pdf.pdfobject * Pdfio.bytes
| Op_Do of string
| Op_MP of string
| Op_DP of string * Pdf.pdfobject
| Op_BMC of string
| Op_BDC of string * Pdf.pdfobject
| Op_EMC
| Op_BX
| Op_EX
| Op_Unknown of string
type lexeme =
| Op of string
| Obj of Pdfgenlex.t
| PdfObj of Pdf.pdfobject
| LexInlineImage of Pdf.pdfobject * Pdfio.bytes
| LexComment
val lexemes_of_op : ( lexeme -> unit ) -> t -> unit
val lexemes_of_ops : t list -> lexeme list
val lexemelists_of_ops : t list -> lexeme list list
val filterspecial : Pdf.pdfobject list -> bool
val string_of_lexeme : lexeme -> string
val b : Buffer.t
val string_of_lexemes : lexeme list -> string
val string_of_ops : t list -> string
val string_of_op : t -> string
exception LexingEnd
val lex_name : Pdfio.input -> lexeme
exception Couldn'tHandleContent
val nocontent : Pdfio.input -> 'a
val lex_number : Pdfio.input -> lexeme
val get_dictionary : Pdfio.input -> lexeme
val components : Pdf.t -> Pdf.pdfobject -> Pdf.pdfobject -> int
val lex_inline_image : Pdf.t -> Pdf.pdfobject -> Pdfio.input -> Pdf.pdfobject * Pdfio.bytes
val lex_keyword : Pdf.t -> Pdf.pdfobject -> Pdfio.input -> lexeme
val lex_string : Pdfio.input -> lexeme
val lex_hexstring : Pdfio.input -> lexeme
val lex_next : Pdf.t -> Pdf.pdfobject -> Pdfio.input -> lexeme
val print_lexeme : lexeme -> unit
val lex_stream : Pdf.t -> Pdf.pdfobject -> Pdfio.input -> lexeme list
val split : lexeme list -> lexeme list * lexeme list
val parse_operator : int ref -> lexeme list -> t * lexeme list
val parse_lexemes : int ref -> lexeme list -> t list -> t list
val concat_bytess : Pdfio.bytes list -> Pdfio.bytes
val parse_stream : Pdf.t -> Pdf.pdfobject -> Pdfio.bytes list -> t list
val parse_operators : Pdf.t -> Pdf.pdfobject -> Pdf.pdfobject list -> t list
val stream_of_lexemes : lexeme list list -> Pdfio.bytes
val print_stream : Pdfio.bytes -> unit
val stream_of_ops : t list -> Pdf.pdfobject