Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
val debug : bool ref
val report_pdf_size : Pdf.t -> unit
val recompress_stream : Pdf.t -> Pdf.pdfobject -> unit
val pdfobjeq : Pdf.t -> int -> int -> int
val really_squeeze : Pdf.t -> unit
val xobjects_done : int list ref
val squeeze_form_xobject : Pdf.t -> int -> unit
val content_streams_of_page : Pdf.t -> int -> int list
val squeeze_all_content_streams : Pdf.t -> unit
val squeeze : ?logto:string -> Pdf.t -> unit
val encode_output : encoding -> string -> string
val endpage_io :
?revision:int ->
Pdfio.input ->
string option ->
string option ->
int
val splitat_commas : Pdfgenlex.t list -> Pdfgenlex.t list list
val is_dimension : (float -> float -> 'a) -> Pdfpage.t -> 'b
val select_dimensions :
(float -> float -> bool) ->
Pdf.t ->
int list ->
int list
val select_portrait : Pdf.t -> int list -> int list
val select_landscape : Pdf.t -> int list -> int list
val mk_numbers : Pdf.t -> int -> Pdfgenlex.t list -> int list
val fixup_negatives : int -> Pdfgenlex.t -> Pdfgenlex.t
val parse_pagespec_inner : int -> Pdf.t -> string -> int list
val parse_pagespec : Pdf.t -> string -> int list
val string_of_pagespec : Pdf.t -> int list -> string
val print_pdf_objs : Pdf.t -> unit
val pagelabel : Pdf.t -> int -> string
val protect :
bool ->
Pdf.t ->
Pdf.pdfobject ->
Pdf.pdfobject list ->
Pdf.pdfobject list
val combine_pdf_resources :
Pdf.t ->
Pdf.pdfobject ->
Pdf.pdfobject ->
Pdf.pdfobject
val attach_file :
?memory:Pdfio.bytes ->
bool ->
int option ->
Pdf.t ->
string ->
Pdf.t
val list_attached_files : Pdf.t -> attachment list
val read_lines : Pdfio.input -> string list
val verify_bookmarks : Pdf.t -> int -> int -> Pdfmarks.t list -> bool
val bookmark_of_data :
Pdf.t ->
int ->
string ->
int ->
bool ->
Pdfgenlex.t list ->
Pdfmarks.t
val parse_bookmark_file : bool -> Pdf.t -> Pdfio.input -> Pdfmarks.t list
val add_bookmarks : bool -> Pdfio.input -> Pdf.t -> Pdf.t
val set_viewer_preference : (string * Pdf.pdfobject * int) -> Pdf.t -> Pdf.t
val set_metadata_from_bytes : bool -> Pdfio.bytes -> Pdf.t -> Pdf.t
val list_bookmarks : encoding -> int list -> Pdf.t -> Pdfio.output -> unit
val get_bookmark_name : Pdf.t -> Pdfmarks.t list -> int -> int -> 'a -> string
val bookmark_pages : int -> Pdf.t -> int list
val output_page_info : Pdf.t -> int list -> unit
val hasbox : Pdf.t -> int -> string -> bool
val get_metadata : Pdf.t -> Pdfio.bytes option
val print_metadata : Pdf.t -> unit
val list_font :
Pdf.t ->
'a ->
('b * Pdf.pdfobject) ->
'c * 'd * string * string * string
val list_fonts : Pdf.t -> (int * string * string * string * string) list
val print_fonts : Pdf.t -> unit
val string_of_position : position -> string
val calculate_position :
bool ->
float ->
(float * float * float * float) ->
orientation ->
position ->
float * float * float
val width_of_text : Pdftext.font -> string -> float
val ops_metrics : ops_metrics list ref
val ops_baseline_adjustment : float ref
val ops :
'a ->
bool ->
float ->
float ->
float ->
float ->
float ->
bool ->
float ->
string ->
string option ->
(float * float * float) ->
float ->
string ->
Pdfops.t list
val find_justification_offsets :
float ->
float ->
position ->
justification ->
float
val extract_num : (string, string) Hashtbl.t -> string -> Pdf.pdfobject
val extract_fontbbox : ('a, string) Hashtbl.t -> 'b -> Pdf.pdfobject list
val make_font : bool -> string -> Pdf.pdfobject
val extract_text : float option -> Pdf.t -> int list -> string
val addtext :
bool ->
string list ->
float ->
bool ->
bool ->
(float * float * float) ->
string ->
bool ->
int ->
int option ->
float ->
Pdftext.standard_font option ->
bool ->
position ->
float ->
float ->
string ->
int list ->
orientation ->
bool ->
float ->
justification ->
string ->
float option ->
Pdf.t ->
Pdf.t
val addtexts :
bool ->
float ->
bool ->
bool ->
string ->
Pdftext.standard_font option ->
bool ->
int ->
int option ->
(float * float * float) ->
position ->
float ->
float ->
bool ->
string ->
int list ->
orientation ->
bool ->
float ->
justification ->
bool ->
bool ->
string ->
float option ->
Pdf.t ->
Pdf.t
val make_mediabox : (float * float * float * float) -> Pdf.pdfobject
val process_xobject :
(Pdf.t -> 'a -> Pdf.pdfobject list -> Pdf.pdfobject list) ->
Pdf.t ->
'b ->
int ->
unit
val process_xobjects :
Pdf.t ->
Pdfpage.t ->
(Pdf.t -> Pdf.pdfobject -> Pdf.pdfobject list -> Pdf.pdfobject list) ->
unit
val change_pattern_matrices_resources :
Pdf.t ->
Pdftransform.transform_matrix ->
Pdf.pdfobject ->
Pdf.pdfobject
val change_pattern_matrices_page :
Pdf.t ->
Pdftransform.transform_matrix ->
Pdfpage.t ->
Pdfpage.t
val transform_annotations :
Pdf.t ->
Pdftransform.transform_matrix ->
Pdf.pdfobject ->
unit
val flip_page :
?fast:bool ->
(float -> float -> float -> float -> Pdftransform.transform_matrix) ->
Pdf.t ->
'a ->
Pdfpage.t ->
Pdfpage.t
val stamp_shift_of_position :
bool ->
bool ->
float ->
float ->
float ->
float ->
position ->
float * float
val combine_page_items : 'a -> Pdf.pdfobject -> Pdf.pdfobject -> Pdf.pdfobject
val change_bookmark : (int, int) Hashtbl.t -> Pdfmarks.t -> Pdfmarks.t
val allupright : int list -> Pdf.t -> bool
val upright_transform : Pdfpage.t -> Pdftransform.transform_matrix
val transform_boxes :
Pdftransform.transform_matrix ->
Pdf.t ->
Pdfpage.t ->
Pdfpage.t
val transform_contents :
?fast:bool ->
Pdftransform.transform_matrix ->
Pdf.t ->
Pdfpage.t ->
Pdfpage.t
val get_annotation_string : encoding -> Pdf.t -> Pdf.pdfobject -> string
val print_annotation : encoding -> Pdf.t -> int -> Pdf.pdfobject -> unit
val list_annotations_more : Pdf.t -> unit
val renumber_in_dest :
(int, int) Hashtbl.t ->
bool ->
Pdf.pdfobject ->
Pdf.pdfobject
val twoup_transforms : Pdf.pdfobject -> Pdftransform.transform_matrix list
val twoup_stack_transforms :
Pdf.pdfobject ->
Pdftransform.transform_matrix list
val combine_pdf_rests :
Pdf.t ->
Pdf.pdfobject ->
Pdf.pdfobject ->
Pdf.pdfobject
val get_info : bool -> Pdf.t -> string -> string
val get_info_utf8 : Pdf.t -> string -> string
val xmltree_of_bytes : Pdfio.bytes -> Xmlm.dtd * xmltree
val bytes_of_xmltree : (Xmlm.dtd * xmltree) -> Pdfio.bytes
val string_of_xmltree : xmltree -> string
val string_of_tag : Xmlm.tag -> string
val string_of_attribute : Xmlm.attribute -> string
val string_of_attributes : Xmlm.attribute list -> string
val string_of_xmltrees : xmltree list -> string
val collect_list_items : xmltree -> string
val collect_list_items_all : xmltree list -> string option
val get_data_for : string -> string -> xmltree -> string option
val output_xmp_info : 'a -> Pdf.t -> unit
val get_xmp_info : Pdf.t -> string -> string
val set_pdf_info_xml :
string ->
string ->
Pdf.pdfobject ->
Pdfio.bytes ->
'a ->
Pdfio.bytes
val set_pdf_info_xml_many :
(string * string) list ->
Pdf.pdfobject ->
Pdfio.bytes ->
'a ->
Pdfio.bytes
val default_date : unit -> date
val make_xmp_date_from_components : date -> string
val set_pdf_info :
?xmp_also:bool ->
?xmp_just_set:bool ->
(string * Pdf.pdfobject * int) ->
Pdf.t ->
Pdf.t
val replacements : Pdf.t -> (string * string) list
val blacktext_ops :
(float * float * float) ->
Pdf.t ->
Pdf.pdfobject ->
Pdf.pdfobject list ->
Pdf.pdfobject list
val blacklines_ops :
(float * float * float) ->
Pdf.t ->
Pdf.pdfobject ->
Pdf.pdfobject list ->
Pdf.pdfobject list
val blackfills_ops :
(float * float * float) ->
Pdf.t ->
Pdf.pdfobject ->
Pdf.pdfobject list ->
Pdf.pdfobject list
val isimage : Pdf.t -> ('a * Pdf.pdfobject) -> bool
val xobject_isimage : Pdf.t -> Pdf.pdfobject -> string -> bool
val substitute : bool -> Pdfops.t list
val remove_images_stream :
string option ->
bool ->
Pdf.t ->
Pdf.pdfobject ->
Pdfops.t list ->
Pdfops.t list ->
Pdfops.t list
val process_form_xobject :
string option ->
bool ->
Pdf.t ->
Pdf.pdfobject ->
Pdf.pdfobject * Pdf.t
val set_version : int -> Pdf.t -> unit
val blank_document : float -> float -> int -> Pdf.t
val blank_document_paper : Pdfpaper.t -> int -> Pdf.t
val page1 : Pdfpagelabels.t list -> bool
val add_page_labels :
Pdf.t ->
Pdfpagelabels.labelstyle ->
string option ->
int ->
int list ->
unit