<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <link rel="stylesheet" href="style.css" type="text/css"> <meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type"> <link rel="Start" href="index.html"> <link rel="previous" href="Pdfgenlex.html"> <link rel="next" href="Pdfjpeg.html"> <link rel="Up" href="index.html"> <link title="Index of types" rel=Appendix href="index_types.html"> <link title="Index of exceptions" rel=Appendix href="index_exceptions.html"> <link title="Index of values" rel=Appendix href="index_values.html"> <link title="Index of modules" rel=Appendix href="index_modules.html"> <link title="Pdfutil" rel="Chapter" href="Pdfutil.html"> <link title="Pdfio" rel="Chapter" href="Pdfio.html"> <link title="Pdftransform" rel="Chapter" href="Pdftransform.html"> <link title="Pdfunits" rel="Chapter" href="Pdfunits.html"> <link title="Pdfpaper" rel="Chapter" href="Pdfpaper.html"> <link title="Pdf" rel="Chapter" href="Pdf.html"> <link title="Pdfcrypt" rel="Chapter" href="Pdfcrypt.html"> <link title="Pdfflate" rel="Chapter" href="Pdfflate.html"> <link title="Pdfcodec" rel="Chapter" href="Pdfcodec.html"> <link title="Pdfwrite" rel="Chapter" href="Pdfwrite.html"> <link title="Pdfgenlex" rel="Chapter" href="Pdfgenlex.html"> <link title="Pdfread" rel="Chapter" href="Pdfread.html"> <link title="Pdfjpeg" rel="Chapter" href="Pdfjpeg.html"> <link title="Pdfops" rel="Chapter" href="Pdfops.html"> <link title="Pdfdest" rel="Chapter" href="Pdfdest.html"> <link title="Pdfmarks" rel="Chapter" href="Pdfmarks.html"> <link title="Pdfpagelabels" rel="Chapter" href="Pdfpagelabels.html"> <link title="Pdfpage" rel="Chapter" href="Pdfpage.html"> <link title="Pdfannot" rel="Chapter" href="Pdfannot.html"> <link title="Pdffun" rel="Chapter" href="Pdffun.html"> <link title="Pdfspace" rel="Chapter" href="Pdfspace.html"> <link title="Pdfimage" rel="Chapter" href="Pdfimage.html"> <link title="Pdfafm" rel="Chapter" href="Pdfafm.html"> <link title="Pdfafmdata" rel="Chapter" href="Pdfafmdata.html"> <link title="Pdfglyphlist" rel="Chapter" href="Pdfglyphlist.html"> <link title="Pdftext" rel="Chapter" href="Pdftext.html"> <link title="Pdfstandard14" rel="Chapter" href="Pdfstandard14.html"> <link title="Pdfgraphics" rel="Chapter" href="Pdfgraphics.html"> <link title="Pdfshapes" rel="Chapter" href="Pdfshapes.html"> <link title="Pdfdate" rel="Chapter" href="Pdfdate.html"> <link title="Pdfocg" rel="Chapter" href="Pdfocg.html"> <link title="Pdfcff" rel="Chapter" href="Pdfcff.html"> <link title="Pdftype1" rel="Chapter" href="Pdftype1.html"> <link title="Pdftruetype" rel="Chapter" href="Pdftruetype.html"> <link title="Pdftype0" rel="Chapter" href="Pdftype0.html"> <link title="Pdfmerge" rel="Chapter" href="Pdfmerge.html"><title>Pdfread</title> </head> <body> <div class="navbar"><a class="pre" href="Pdfgenlex.html" title="Pdfgenlex">Previous</a> <a class="up" href="index.html" title="Index">Up</a> <a class="post" href="Pdfjpeg.html" title="Pdfjpeg">Next</a> </div> <h1>Module <a href="type_Pdfread.html">Pdfread</a></h1> <pre><span class="keyword">module</span> Pdfread: <code class="code">sig</code> <a href="Pdfread.html">..</a> <code class="code">end</code></pre><div class="info module top"> Reading PDF Files<br> </div> <hr width="100%"> <pre><span id="VALread_debug"><span class="keyword">val</span> read_debug</span> : <code class="type">bool Pervasives.ref</code></pre> <pre><span id="VALpdf_of_input"><span class="keyword">val</span> pdf_of_input</span> : <code class="type">string option -> string option -> <a href="Pdfio.html#TYPEinput">Pdfio.input</a> -> <a href="Pdf.html#TYPEt">Pdf.t</a></code></pre><div class="info "> Read a PDF from a <code class="code">Pdfio.input</code>, with an optional user password which, if absent, is assumed to be the empty string, and optional owner password.<br> </div> <pre><span id="VALpdf_of_input_lazy"><span class="keyword">val</span> pdf_of_input_lazy</span> : <code class="type">string option -> string option -> <a href="Pdfio.html#TYPEinput">Pdfio.input</a> -> <a href="Pdf.html#TYPEt">Pdf.t</a></code></pre><div class="info "> Same as <code class="code">pdf_of_input</code>, 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.<br> </div> <pre><span id="VALpdf_of_channel"><span class="keyword">val</span> pdf_of_channel</span> : <code class="type">?source:string -><br> string option -> string option -> Pervasives.in_channel -> <a href="Pdf.html#TYPEt">Pdf.t</a></code></pre><div class="info "> Same as <code class="code">pdf_of_input</code>, but from an OCaml channel.<br> </div> <pre><span id="VALpdf_of_channel_lazy"><span class="keyword">val</span> pdf_of_channel_lazy</span> : <code class="type">?source:string -><br> string option -> string option -> Pervasives.in_channel -> <a href="Pdf.html#TYPEt">Pdf.t</a></code></pre><div class="info "> As <code class="code">pdf_of_channel</code>, but delay loading of streams and parsing of objects like <code class="code">pdf_of_input_lazy</code>.<br> </div> <pre><span id="VALpdf_of_file"><span class="keyword">val</span> pdf_of_file</span> : <code class="type">string option -> string option -> string -> <a href="Pdf.html#TYPEt">Pdf.t</a></code></pre><div class="info "> Read a PDF from the given filename with optional user and owner passwords.<br> </div> </body></html>