package cpdf

  1. Overview
  2. Docs
PDF command line tools

Install

Dune Dependency

Authors

Maintainers

Sources

v2.8.1.tar.gz
md5=45ba51aae6b5d3ea6cb421037f8f73bb
sha512=f325c703835a82be462cafa5fb9548329ef648e3aa66bca73c2ae1d9e99813b3008915018bf5090e0c0dd6e31509e97895b01c64a9b4484c4993be59e85995e8

doc/cpdf/Cpdfattach/index.html

Module Cpdfattach

File Attachments

type attachment = {
  1. name : string;
  2. pagenumber : int;
  3. data : unit -> Pdfio.bytes;
}
val remove_unsafe_characters : string -> string

Remove characters which might not make good filenames from a UTF8 string.

val attach_file : ?memory:Pdfio.bytes -> bool -> int option -> Pdf.t -> string -> Pdf.t

attach_file keepversion topage pdf filename attaches the file in filename to the pdf, optionally to a page (rather than document-level). If keepversion is true, the PDF version number won't be altered.

val remove_attached_files : Pdf.t -> Pdf.t

Remove attached files.

val list_attached_files : Pdf.t -> attachment list

List attached files. Attachment name and page number. Page 0 is document level.

val dump_attached_files : Pdf.t -> string -> unit

Dump attached files to a given directory.

val size_attached_files : Pdf.t -> int

Total size in bytes of all attached files.

OCaml

Innovation. Community. Security.