module Pdfread:sig..end
Reading PDF Files
val pdf_of_input : ?revision:int -> string option -> string option -> Pdfio.input -> Pdf.tRead a PDF from a Pdfio.input, with an optional user password which, if
absent, is assumed to be the empty string, and optional owner password.
val pdf_of_input_lazy : ?revision:int -> string option -> string option -> Pdfio.input -> Pdf.tSame as pdf_of_input, but delay loading of streams and parsing of objects
(they will be loaded and parsed when needed). Useful if we only intend to do
something simple, like read metadata.
val pdf_of_channel : ?revision:int ->
?source:string ->
string option -> string option -> Stdlib.in_channel -> Pdf.tSame as pdf_of_input, but from an OCaml channel.
val pdf_of_channel_lazy : ?revision:int ->
?source:string ->
string option -> string option -> Stdlib.in_channel -> Pdf.tAs pdf_of_channel, but delay loading of streams and parsing of objects like pdf_of_input_lazy.
val pdf_of_file : ?revision:int -> string option -> string option -> string -> Pdf.tRead a PDF from the given filename with optional user and owner passwords.
val revisions : Pdfio.input -> intRead the number of revisions of the document, by performing a dummy read. For
example, if this function returns 3, then appropriate values to pass to
?revision in a subsequent call to pdf_of_input are 1, 2, and 3.