Sophie

Sophie

distrib > Mageia > 5 > x86_64 > media > core-release > by-pkgid > a94aa4b565ade94d0310c6e77aeea765 > files > 67

ocaml-camlpdf-devel-1.7.1-3.mga5.x86_64.rpm

<!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="Pdfafm.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>Pdfimage</title>
</head>
<body>
<div class="navbar"><a class="pre" href="Pdfspace.html" title="Pdfspace">Previous</a>
&nbsp;<a class="up" href="index.html" title="Index">Up</a>
&nbsp;<a class="post" href="Pdfafm.html" title="Pdfafm">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 module top">
Extract Images.<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="TYPEt"><span class="keyword">type</span> <code class="type"></code>t</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="TYPEELTt.JPEG"><span class="constructor">JPEG</span></span> <span class="keyword">of</span> <code class="type"><a href="Pdfio.html#TYPEbytes">Pdfio.bytes</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="TYPEELTt.JPEG2000"><span class="constructor">JPEG2000</span></span> <span class="keyword">of</span> <code class="type"><a href="Pdfio.html#TYPEbytes">Pdfio.bytes</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="TYPEELTt.JBIG2"><span class="constructor">JBIG2</span></span> <span class="keyword">of</span> <code class="type"><a href="Pdfio.html#TYPEbytes">Pdfio.bytes</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="TYPEELTt.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="Pdfio.html#TYPEbytes">Pdfio.bytes</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#TYPEt">Pdf.t</a> -> <a href="Pdf.html#TYPEpdfobject">Pdf.pdfobject</a> -> <a href="Pdf.html#TYPEpdfobject">Pdf.pdfobject</a> -> <a href="Pdfimage.html#TYPEt">t</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#TYPEt">Pdf.t</a> -> <a href="Pdf.html#TYPEpdfobject">Pdf.pdfobject</a> -> <a href="Pdf.html#TYPEpdfobject">Pdf.pdfobject</a> -> <a href="Pdfimage.html#TYPEt">t</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#TYPEt">Pdf.t</a> -> <a href="Pdf.html#TYPEpdfobject">Pdf.pdfobject</a> -> <a href="Pdf.html#TYPEpdfobject">Pdf.pdfobject</a> -> <a href="Pdfimage.html#TYPEt">t</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#TYPEt">Pdf.t</a> -> <a href="Pdf.html#TYPEpdfobject">Pdf.pdfobject</a> -> <a href="Pdf.html#TYPEpdfobject">Pdf.pdfobject</a> -> <a href="Pdfimage.html#TYPEt">t</a></code></pre><div class="info ">
Get the uncompressed image contents, decoding JPEG, JPEG2000 and JBIG2 as
required. Not implemented yet.<br>
</div>

<pre><span id="VALget_image_unprocessed_pixel"><span class="keyword">val</span> get_image_unprocessed_pixel</span> : <code class="type"><a href="Pdf.html#TYPEt">Pdf.t</a> -> <a href="Pdf.html#TYPEpdfobject">Pdf.pdfobject</a> -> <a href="Pdf.html#TYPEpdfobject">Pdf.pdfobject</a> -> (int -> int array) option</code></pre><div class="info ">
Return a function which, when given an x and y coordinate, returns the pixel
byte values prior to any decoding, i.e in the raw input image data before /Decode,
/Index lookups and so on. Returns array of components as bytes.<br>
</div>
</body></html>