package cpdf
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
High-level pdf tools based on CamlPDF
Install
dune-project
Dependency
Authors
Maintainers
Sources
v2.3.zip
sha256=6edaad9720f3df99d9b3527dc3c48d3f75c9de532f436156d3b03ddd26e557c3
md5=cf90567bf5f114917abfc563262a845a
doc/cpdf/Cpdfcommand/index.html
Module Cpdfcommand
val tempfiles : string list refval initial_file_size : int refval empty : Pdf.tval emptypage : Pdfpage.tval pdfread_pdf_of_input :
?revision:int ->
string option ->
string option ->
Pdfio.input ->
Pdf.tval pdfread_pdf_of_channel_lazy :
?revision:int ->
?source:string ->
string option ->
string option ->
in_channel ->
Pdf.tval pdfread_pdf_of_file :
?revision:int ->
string option ->
string option ->
string ->
Pdf.tval stay_on_error : bool refval parse_pagespec : Pdf.t -> string -> int listtype op = | CopyFont of string| CSP1| CSP2 of float| CSP3| CountPages| Version| Encrypt| Decrypt| StampOn of string| StampUnder of string| CombinePages of string| TwoUp| TwoUpStack| RemoveBookmarks| AddBookmarks of string| AddText of string| AddRectangle| RemoveText| Draft| PadBefore| PadAfter| PadEvery of int| PadMultiple of int| PadMultipleBefore of int| Shift| Scale| ScaleToFit| ScaleContents of float| AttachFile of string list| RemoveAttachedFiles| ListAttachedFiles| DumpAttachedFiles| RemoveAnnotations| ListAnnotations| ListAnnotationsMore| CopyAnnotations of string| Merge| Split| SplitOnBookmarks of int| Clean| Info| PageInfo| Metadata| SetMetadata of string| RemoveMetadata| Fonts| RemoveFonts| Compress| Decompress| Crop| Trim| Bleed| Art| RemoveCrop| RemoveArt| RemoveTrim| RemoveBleed| CopyCropBoxToMediaBox| CopyBox| MediaBox| HardBox of string| Rotate of int| Rotateby of int| RotateContents of float| Upright| VFlip| HFlip| ThinLines of float| SetAuthor of string| SetTitle of string| SetSubject of string| SetKeywords of string| SetCreate of string| SetModify of string| SetCreator of string| SetProducer of string| SetTrapped| SetUntrapped| SetVersion of int| ListBookmarks| SetPageLayout of string| SetPageMode of string| HideToolbar of bool| HideMenubar of bool| HideWindowUI of bool| FitWindow of bool| CenterWindow of bool| DisplayDocTitle of bool| Presentation| ChangeId| RemoveId| CopyId of string| BlackText| BlackLines| BlackFills| ExtractImages| ImageResolution of float| MissingFonts| RemoveUnusedResources| ExtractFontFile| ExtractText| OpenAtPage of int| OpenAtPageFit of int| AddPageLabels| RemovePageLabels| PrintPageLabels| Revisions| RemoveDictEntry of string| ListSpotColours| RemoveClipping| SetMetadataDate of string| CreateMetadata| EmbedMissingFonts| BookmarksOpenToLevel of int| CreatePDF| RemoveAllText| ShowBoxes| TrimMarks
val string_of_op : op -> stringval string_of_input_kind : input_kind -> stringtype input = input_kind * string * string * string * bool ref * int optiontype args = {mutable op : op option;mutable preserve_objstm : bool;mutable create_objstm : bool;mutable out : output_method;mutable inputs : input list;mutable chunksize : int;mutable linearize : bool;mutable keeplinearize : bool;mutable rectangle : string;mutable coord : string;mutable duration : float option;mutable transition : string option;mutable horizontal : bool;mutable inward : bool;mutable direction : int;mutable effect_duration : float;mutable font : font;mutable fontname : string;mutable fontsize : float;mutable color : float * float * float;mutable opacity : float;mutable position : Cpdf.position;mutable underneath : bool;mutable linespacing : float;mutable midline : bool;mutable topline : bool;mutable justification : Cpdf.justification;mutable bates : int;mutable batespad : int option;mutable prerotate : bool;mutable orientation : Cpdf.orientation;mutable relative_to_cropbox : bool;mutable keepversion : bool;mutable bycolumns : bool;mutable pagerotation : int;mutable crypt_method : string;mutable owner : string;mutable user : string;mutable no_edit : bool;mutable no_print : bool;mutable no_copy : bool;mutable no_annot : bool;mutable no_forms : bool;mutable no_extract : bool;mutable no_assemble : bool;mutable no_hq_print : bool;mutable debug : bool;mutable debugcrypt : bool;mutable debugforce : bool;mutable boxes : bool;mutable encrypt_metadata : bool;mutable retain_numbering : bool;mutable remove_duplicate_fonts : bool;mutable remove_duplicate_streams : bool;mutable encoding : Cpdf.encoding;mutable scale : float;mutable copyfontpage : int;mutable copyfontname : string option;mutable fast : bool;mutable dashrange : string;mutable outline : bool;mutable linewidth : float;mutable path_to_ghostscript : string;mutable frombox : string option;mutable tobox : string option;mutable mediabox_if_missing : bool;mutable topage : string option;mutable scale_stamp_to_fit : bool;mutable keep_this_id : string option;mutable makenewid : bool;mutable labelstyle : Pdfpagelabels.labelstyle;mutable labelprefix : string option;mutable labelstartval : int;mutable squeeze : bool;mutable original_filename : string;mutable was_encrypted : bool;mutable cpdflin : string option;mutable recrypt : bool;mutable was_decrypted_with_owner : bool;mutable creator : string option;mutable producer : string option;mutable embedfonts : bool;mutable extract_text_font_size : float option;mutable padwith : string option;mutable alsosetxml : bool;mutable justsetxml : bool;mutable gs_malformed : bool;mutable gs_quiet : bool;mutable merge_add_bookmarks : bool;mutable merge_add_bookmarks_use_titles : bool;mutable createpdf_pages : int;mutable createpdf_pagesize : Pdfpaper.t;mutable removeonly : string option;
}val args : argsval string_of_permission : Pdfcrypt.permission -> stringval getpermissions : Pdf.t -> stringval banlist_of_args : unit -> Pdfcrypt.permission listval banned : Pdfcrypt.permission list -> op -> boolval operation_allowed : Pdf.t -> Pdfcrypt.permission list -> op option -> boolval output_page_count : Pdf.t -> unitval detect_duplicate_op : op -> unitval setop : op -> unit -> unitval encrypt_to_collect : int refval points_of_papersize : Pdfpaper.t -> float * floatval cropbox : Pdf.t -> Pdfpage.t -> Pdf.pdfobjectval width : Pdf.pdfobject -> floatval height : Pdf.pdfobject -> floatval minx : Pdf.pdfobject -> floatval miny : Pdf.pdfobject -> floatval maxx : Pdf.pdfobject -> floatval maxy : Pdf.pdfobject -> floatval find_page_width : 'a -> Pdfpage.t -> floatval find_page_height : 'a -> Pdfpage.t -> floatval find_page_minx : 'a -> Pdfpage.t -> floatval find_page_miny : 'a -> Pdfpage.t -> floatval find_page_maxx : 'a -> Pdfpage.t -> floatval find_page_maxy : 'a -> Pdfpage.t -> floatval find_page_characteristic : Pdf.t -> Pdfpage.t -> Pdfgenlex.t -> floatval make_num : Pdf.t -> Pdfpage.t -> Pdfgenlex.t -> Pdfgenlex.t -> floatval update_last_number :
Pdf.t ->
Pdfpage.t ->
Pdfgenlex.t ->
Pdfgenlex.t ->
Pdfgenlex.t ->
float list ->
float listval parse_units_again :
Pdf.t ->
Pdfpage.t ->
float list ->
Pdfpaper.t ->
Pdfgenlex.t list ->
float listval parse_units :
Pdf.t ->
Pdfpage.t ->
float list ->
Pdfgenlex.t list ->
float listval parse_rectangle : Pdf.t -> string -> float * float * float * floatval parse_rectangles : Pdf.t -> string -> (float * float * float * float) listval parse_coordinate : Pdf.t -> string -> float * floatval parse_coordinates : Pdf.t -> string -> (float * float) listval parse_single_number : Pdf.t -> string -> floatval setencoding : Cpdf.encoding -> unit -> unitval control_args : string list refval logto : string option refval specs : (string * Arg.spec * string) listexception StdInBytes of Pdfio.bytesval pdf_of_stdin : ?revision:int -> string -> string -> Pdf.tval get_single_pdf_nodecrypt : bool -> Pdf.tval get_pdf_from_input_kind :
?read_lazy:bool ->
?decrypt:bool ->
?fail:bool ->
(input_kind * 'a * string * string * bool ref * int option) ->
op option ->
input_kind ->
Pdf.tval set_producer : string -> Pdf.t -> unitval set_creator : string -> Pdf.t -> unitval really_write_pdf :
?encryption:Pdfwrite.encryption option ->
?is_decompress:bool ->
bool ->
Pdf.t ->
string ->
unitval write_pdf :
?encryption:Pdfwrite.encryption option ->
?is_decompress:bool ->
bool ->
Pdf.t ->
unitval get_bookmark_name : Pdf.t -> Pdfmarks.t list -> int -> int -> 'a -> stringval process_others :
Pdfmarks.t list ->
Pdf.t ->
int ->
string ->
int ->
int ->
int ->
string ->
stringval name_of_spec :
Pdfmarks.t list ->
Pdf.t ->
int ->
string ->
int ->
string ->
int ->
int ->
stringval fast_write_split_pdfs :
Pdfwrite.encryption option ->
int ->
string ->
bool ->
(Pdf.t -> Pdf.t) ->
string ->
Pdf.t ->
int list list ->
'a ->
unitval bookmark_pages : int -> Pdf.t -> int listval split_at_bookmarks :
Pdfwrite.encryption option ->
string ->
squeeze:bool ->
(Pdf.t -> Pdf.t) ->
int ->
string ->
Pdf.t ->
unitval split_pdf :
Pdfwrite.encryption option ->
string ->
int ->
'a ->
cpdflin:'b ->
preserve_objstm:'c ->
create_objstm:'d ->
squeeze:bool ->
(Pdf.t -> Pdf.t) ->
string ->
Pdf.t ->
unitval pnm_to_channel_24 : out_channel -> int -> int -> Pdfio.bytes -> unitval write_stream : string -> Pdfio.bytes -> unitval write_image : Pdf.t -> Pdf.pdfobject -> string -> Pdf.pdfobject -> unitval extract_images : Pdf.t -> int list -> string -> unitval getencryption : Pdf.t -> stringtype xobj = | Image of int * int| Form of Pdftransform.transform_matrix * Pdf.pdfobject * Pdf.pdfobject
val image_resolution : Pdf.t -> int list -> float -> unitval is_missing : Pdf.t -> Pdf.pdfobject -> boolval missing_font : Pdf.t -> int -> (string * Pdf.pdfobject) -> unitval missing_fonts : Pdf.t -> int list -> unitval lines_of_channel : in_channel -> string listval calculate_margins : string -> Pdf.t -> int list -> unitval remove_fontdescriptor : Pdf.t -> Pdf.pdfobject -> Pdf.pdfobjectval dump_attachment : string -> Pdf.t -> ('a * Pdf.pdfobject) -> unitval dump_attached_document : Pdf.t -> string -> unitval dump_attached_files : Pdf.t -> string -> unitval extract_fontfile : int -> string -> Pdf.t -> unitval addrectangle :
bool ->
(float * float) ->
(float * float * float) ->
bool ->
float ->
float ->
Cpdf.position ->
bool ->
bool ->
int list ->
Pdf.t ->
Pdf.tval list_spot_colours : Pdf.t -> unitval remove_clipping_ops :
Pdf.t ->
Pdf.pdfobject ->
Pdf.pdfobject list ->
Pdf.pdfobject listval create_pdf : 'a -> 'b -> Pdf.tval remove_all_text_ops :
Pdf.t ->
Pdf.pdfobject ->
Pdf.pdfobject list ->
Pdf.pdfobject listval line : (float * float * float * float) -> Pdfops.t listval parse_argv :
unit ->
string array ->
(Arg.key * Arg.spec * Arg.doc) list ->
Arg.anon_fun ->
Arg.usage_msg ->
unit sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>