<!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="Pdfspace.html"> <link rel="next" href="Glyphlist.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="Utility" rel="Chapter" href="Utility.html"> <link title="Istring" rel="Chapter" href="Istring.html"> <link title="Io" rel="Chapter" href="Io.html"> <link title="Unzip" rel="Chapter" href="Unzip.html"> <link title="Pdfio" rel="Chapter" href="Pdfio.html"> <link title="Cgenlex" rel="Chapter" href="Cgenlex.html"> <link title="Zlib" rel="Chapter" href="Zlib.html"> <link title="Transform" rel="Chapter" href="Transform.html"> <link title="Units" rel="Chapter" href="Units.html"> <link title="Paper" rel="Chapter" href="Paper.html"> <link title="Pdf" rel="Chapter" href="Pdf.html"> <link title="Pdfcrypt" rel="Chapter" href="Pdfcrypt.html"> <link title="Pdfwrite" rel="Chapter" href="Pdfwrite.html"> <link title="Pdfcodec" rel="Chapter" href="Pdfcodec.html"> <link title="Pdfread" rel="Chapter" href="Pdfread.html"> <link title="Pdfpages" rel="Chapter" href="Pdfpages.html"> <link title="Pdfdoc" rel="Chapter" href="Pdfdoc.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="Glyphlist" rel="Chapter" href="Glyphlist.html"> <link title="Pdftext" rel="Chapter" href="Pdftext.html"> <link title="Fonttables" rel="Chapter" href="Fonttables.html"> <link title="Pdfgraphics" rel="Chapter" href="Pdfgraphics.html"> <link title="Pdfshapes" rel="Chapter" href="Pdfshapes.html"> <link title="Pdfmarks" rel="Chapter" href="Pdfmarks.html"> <link title="Pdfdate" rel="Chapter" href="Pdfdate.html"> <link title="Cff" rel="Chapter" href="Cff.html"><title>Pdfimage</title> </head> <body> <div class="navbar"><a class="pre" href="Pdfspace.html" title="Pdfspace">Previous</a> <a class="up" href="index.html" title="Index">Up</a> <a class="post" href="Glyphlist.html" title="Glyphlist">Next</a> </div> <h1>Module <a href="type_Pdfimage.html">Pdfimage</a></h1> <pre><span class="keyword">module</span> Pdfimage: <code class="code">sig</code> <a href="Pdfimage.html">..</a> <code class="code">end</code></pre><div class="info"> Extract Images - Incomplete and unsupported.<br> </div> <hr width="100%"> <pre><code><span id="TYPEpixel_layout"><span class="keyword">type</span> <code class="type"></code>pixel_layout</span> = </code></pre><table class="typetable"> <tr> <td align="left" valign="top" > <code><span class="keyword">|</span></code></td> <td align="left" valign="top" > <code><span id="TYPEELTpixel_layout.BPP1"><span class="constructor">BPP1</span></span></code></td> </tr> <tr> <td align="left" valign="top" > <code><span class="keyword">|</span></code></td> <td align="left" valign="top" > <code><span id="TYPEELTpixel_layout.BPP8"><span class="constructor">BPP8</span></span></code></td> </tr> <tr> <td align="left" valign="top" > <code><span class="keyword">|</span></code></td> <td align="left" valign="top" > <code><span id="TYPEELTpixel_layout.BPP24"><span class="constructor">BPP24</span></span></code></td> </tr> <tr> <td align="left" valign="top" > <code><span class="keyword">|</span></code></td> <td align="left" valign="top" > <code><span id="TYPEELTpixel_layout.BPP48"><span class="constructor">BPP48</span></span></code></td> </tr></table> <pre><code><span id="TYPEimage"><span class="keyword">type</span> <code class="type"></code>image</span> = </code></pre><table class="typetable"> <tr> <td align="left" valign="top" > <code><span class="keyword">|</span></code></td> <td align="left" valign="top" > <code><span id="TYPEELTimage.JPEG"><span class="constructor">JPEG</span></span> <span class="keyword">of</span> <code class="type"><a href="Utility.html#TYPEbytestream">Utility.bytestream</a> * float list option</code></code></td> </tr> <tr> <td align="left" valign="top" > <code><span class="keyword">|</span></code></td> <td align="left" valign="top" > <code><span id="TYPEELTimage.JPEG2000"><span class="constructor">JPEG2000</span></span> <span class="keyword">of</span> <code class="type"><a href="Utility.html#TYPEbytestream">Utility.bytestream</a> * float list option</code></code></td> </tr> <tr> <td align="left" valign="top" > <code><span class="keyword">|</span></code></td> <td align="left" valign="top" > <code><span id="TYPEELTimage.JBIG2"><span class="constructor">JBIG2</span></span> <span class="keyword">of</span> <code class="type"><a href="Utility.html#TYPEbytestream">Utility.bytestream</a> * float list option</code></code></td> </tr> <tr> <td align="left" valign="top" > <code><span class="keyword">|</span></code></td> <td align="left" valign="top" > <code><span id="TYPEELTimage.Raw"><span class="constructor">Raw</span></span> <span class="keyword">of</span> <code class="type">int * int * <a href="Pdfimage.html#TYPEpixel_layout">pixel_layout</a> * <a href="Utility.html#TYPEbytestream">Utility.bytestream</a></code></code></td> </tr></table> <pre><span id="VALget_image_24bpp"><span class="keyword">val</span> get_image_24bpp</span> : <code class="type"><a href="Pdf.html#TYPEpdfdoc">Pdf.pdfdoc</a> -> <a href="Pdf.html#TYPEpdfobject">Pdf.pdfobject</a> -> <a href="Pdf.html#TYPEpdfobject">Pdf.pdfobject</a> -> <a href="Pdfimage.html#TYPEimage">image</a></code></pre><div class="info"> Given a pdf document, resources dictionary and a stream representing an image, return a triple : width, height, and a stream of (width * height * 3) bytes RGBRGB etc. In all instances, if JPEG or JPEG2000 or JBIG2 is the compression method, data is returned still encoded.<br> </div> <pre><span id="VALget_image"><span class="keyword">val</span> get_image</span> : <code class="type"><a href="Pdf.html#TYPEpdfdoc">Pdf.pdfdoc</a> -> <a href="Pdf.html#TYPEpdfobject">Pdf.pdfobject</a> -> <a href="Pdf.html#TYPEpdfobject">Pdf.pdfobject</a> -> <a href="Pdfimage.html#TYPEimage">image</a></code></pre><div class="info"> Similarly, but if it's to be Raw, use the smallest pixel layout required to represent the data. Not implemented yet.<br> </div> <pre><span id="VALget_image_raw_24bpp"><span class="keyword">val</span> get_image_raw_24bpp</span> : <code class="type"><a href="Pdf.html#TYPEpdfdoc">Pdf.pdfdoc</a> -> <a href="Pdf.html#TYPEpdfobject">Pdf.pdfobject</a> -> <a href="Pdf.html#TYPEpdfobject">Pdf.pdfobject</a> -> <a href="Pdfimage.html#TYPEimage">image</a></code></pre><div class="info"> Get the uncompressed image contents in 24bpp, decoding JPEG, JPEG2000 and JBIG2 as required. Not implemented yet.<br> </div> <pre><span id="VALget_image_raw"><span class="keyword">val</span> get_image_raw</span> : <code class="type"><a href="Pdf.html#TYPEpdfdoc">Pdf.pdfdoc</a> -> <a href="Pdf.html#TYPEpdfobject">Pdf.pdfobject</a> -> <a href="Pdf.html#TYPEpdfobject">Pdf.pdfobject</a> -> <a href="Pdfimage.html#TYPEimage">image</a></code></pre><div class="info"> Get the uncompressed image contents, decoding JPEG, JPEG2000 and JBIG2 as required. Not implemented yet.<br> </div> </body></html>