module Pdfwrite: sig
.. end
Writing PDF Files
type
encryption_method =
| |
PDF40bit |
| |
PDF128bit |
| |
AES128bit of bool |
| |
AlreadyEncrypted |
Encryption methods. The boolean for AES128bit
indicates encryption of
metadata or lack thereof.
type
encryption = {
}
The type of an encryption with certain user permissions.
val pdf_to_output : bool -> encryption option -> Pdf.pdfdoc -> Pdfio.output -> unit
Write a PDF document to an Io.output
, optionally encrypting and/or
linearizing. May raise Io.EndOfOutput
.
val pdf_to_channel : bool ->
encryption option ->
bool -> Pdf.pdfdoc -> Pervasives.out_channel -> unit
Similarly to an OCaml channel. If mk_id
set, build a new /ID (don't use
mk_id
on encrypted documents).
val pdf_to_file_options : bool -> encryption option -> bool -> Pdf.pdfdoc -> string -> unit
Similarly to a named file. If mk_id
is set, the /ID entry in the document's
trailer dictionary is updated using the current date and time and the filename.
Don't use mk_id
on encrypted documents.
val pdf_to_file : Pdf.pdfdoc -> string -> unit
Simple version. Equivalent to pdf_to_file_options false None true
val pdf_to_file_recrypting : Pdf.pdfdoc -> Pdf.pdfdoc -> string -> string -> unit
Recrypting version. Does not alter existing documents. Two string arguments are userpw then filename.
val string_of_pdf : Pdf.pdfobject -> string
Calculate a string of a pdf object. Due to OCaml's modest limit
on string length, this should be used only when the length of the output is
known to be limited (for example for debug purposes).