package camlpdf
Module Pdf
type saved_encryption = {from_get_encryption_values : Pdfcryptprimitives.encryption * string * string * int32 * string * string option * string option;encrypt_metadata : bool;perms : string;
}type deferred_encryption = {crypt_type : Pdfcryptprimitives.encryption;file_encryption_key : string option;obj : int;gen : int;key : int array;keylength : int;r : int;
}val print_deferred_encryption : deferred_encryption -> unitval toget : ?crypt:toget_crypt -> Pdfio.input -> int -> int -> togetval length_of_toget : toget -> intval position_of_toget : toget -> intval input_of_toget : toget -> Pdfio.inputtype objectdata = | Parsed of pdfobject| ParsedAlreadyDecrypted of pdfobject| ToParse| ToParseFromObjectStream of (int, int list) Hashtbl.t * int * int * int -> int list -> (int * (objectdata ref * int)) list
type pdfobjmap = (int, objectdata ref * int) Hashtbl.tval pdfobjmap_empty : unit -> pdfobjmapval pdfobjmap_find : 'a -> ('a, 'b) Hashtbl.t -> 'bval pdfobjmap_bindings_inorder : ('a, 'b) Hashtbl.t -> ('a * 'b) listval pdfobjmap_iter_inorder : ('a -> 'b -> unit) -> ('a, 'b) Hashtbl.t -> unitval pdfobjmap_bindings : ('a, 'b) Hashtbl.t -> ('a * 'b) listval pdfobjmap_iter : ('a -> 'b -> unit) -> ('a, 'b) Hashtbl.t -> unittype pdfobjects = {mutable maxobjnum : int;mutable parse : (pdfobjmap_key -> pdfobject) option;mutable pdfobjects : pdfobjmap;mutable object_stream_ids : (int, int) Hashtbl.t;
}type t = {mutable major : int;mutable minor : int;mutable root : int;mutable objects : pdfobjects;mutable trailerdict : pdfobject;mutable was_linearized : bool;mutable saved_encryption : saved_encryption option;
}val empty : unit -> tval input_pdferror : Pdfio.input -> string -> stringval process_deferred_cryption : toget_crypt -> Pdfio.bytes -> Pdfio.bytesval getstream : pdfobject -> unitval getnum : pdfobject -> floatval parse_rectangle : pdfobject -> float * float * float * floatval parse_lazy : t -> pdfobjmap_key -> pdfobjectval removeobj : t -> int -> unitval lookup_obj : t -> pdfobjmap_key -> pdfobjectval parse_delayed_object_stream :
(pdfobjmap_key, int list) Hashtbl.t ->
pdfobjmap_key ->
int ->
t ->
(int -> int list -> (pdfobjmap_key * (objectdata ref * int)) list) ->
pdfobjectval resolve_all_delayed_object_streams : t -> unitval parse_matrix : t -> string -> pdfobject -> Pdftransform.transform_matrixval make_matrix : Pdftransform.transform_matrix -> pdfobjectval objiter : (pdfobjmap_key -> pdfobject -> unit) -> t -> unitval objiter_inorder : (pdfobjmap_key -> pdfobject -> unit) -> t -> unitval objiter_gen : (pdfobjmap_key -> int -> pdfobject -> unit) -> t -> unitval objnumbers : t -> pdfobjmap_key listval objcard : t -> intval list_of_objs : t -> (pdfobjmap_key * objectdata) listval objects_of_list :
(pdfobjmap_key -> pdfobject) option ->
(int * (objectdata ref * int)) list ->
pdfobjectsval page_reference_numbers : t -> int listval renumber_object :
t ->
(int, int) Hashtbl.t ->
pdfobjmap_key ->
objectdata ->
pdfobjectval changes : t -> (pdfobjmap_key, int) Hashtbl.tval renumber : (pdfobjmap_key, int) Hashtbl.t -> t -> tval refset_empty : unit -> ('a, 'b) Hashtbl.tval refset_mem : 'a -> ('a, 'b) Hashtbl.t -> boolval refset_elts : ('a, 'b) Hashtbl.t -> 'a listval referenced :
string list ->
(string * pdfobject) list ->
t ->
(int, unit) Hashtbl.t ref ->
pdfobjmap_key ->
objectdata ->
unitval nullify_deleted_page_references : t -> unitval remove_unreferenced : t -> unitval bigarray_of_stream : pdfobject -> Pdfio.bytesval unique_key : string -> pdfobject -> stringval generate_id : 'a -> string -> (unit -> float) -> pdfobjectval find_indirect : string -> pdfobject -> int optionval deep_copy_pdfobjects :
t ->
(int, objectdata ref * int) Hashtbl.t ->
pdfobjmap