<div><font><font face="courier new,monospace">I have pdftoppm:<br clear="all"></font></font></div><div><font><font face="courier new,monospace"><br></font></font></div><div><font><font face="courier new,monospace">[kyle@localhost gdrivers]$ pdftoppm -v<br>

pdftoppm version 0.18.0<br>Copyright 2005-2011 The Poppler Developers - <a href="http://poppler.freedesktop.org">http://poppler.freedesktop.org</a><br>Copyright 1996-2004 Glyph &amp; Cog, LLC<br></font></font></div><div>
<font><font face="courier new,monospace"><br>
</font></font></div><div><font><font face="courier new,monospace">I can get the checksum:<br></font></font></div><div><font><font face="courier new,monospace"><br></font></font></div><div><font><font face="courier new,monospace">[kyle@localhost gdrivers]$ gdalchksum.py data/adobe_style_geospatial.pdf <br>

17637<br>17637<br>17637<br></font></font></div><div><font><font face="courier new,monospace"><br></font></font></div><div><font><font face="courier new,monospace">running just the test:<br></font></font></div><div><font><font face="courier new,monospace"><br>

</font></font></div><div><font><font face="courier new,monospace">[kyle@localhost gdrivers]$ python pdf.py<br>  TEST: pdf_online_1 ... success<br>  TEST: pdf_online_2 ... success<br>  TEST: pdf_1 ... 16277<br>fail<br>    line 164: bad checksum<br>

<br>Test Script: PDF<br>Succeeded: 2<br>Failed:    1 (0 blew exceptions)<br>Skipped:   0<br>Expected fail:0</font></font></div><div><font><font face="courier new,monospace"><br></font></font></div><div><font><font face="courier new,monospace">Running a verbose test:</font></font></div>

<div><font><font face="courier new,monospace"><br></font></font></div><div><font><font face="courier new,monospace">[kyle@localhost gdrivers]$ python pdf.py<br>  TEST: pdf_online_1 ... PDF: OGC Encoding Best Practice style detected<br>

PDF: LGIDict Version : <br>PDF: This is a the largest neatline for now<br>PDF: CTM[0] = 3.81944e-05<br>PDF: CTM[1] = 0<br>PDF: CTM[2] = 0<br>PDF: CTM[3] = 3.81944e-05<br>PDF: CTM[4] = -77.1123283333<br>PDF: CTM[5] = 38.8878783333<br>

PDF: Datum = WGE<br>PDF: Projection.ProjectionType = GEOGRAPHIC<br>GDAL: GDALOpen(tmp/cache/Cherrydale_eDOQQ_1m_0_033_R1C1.pdf, this=0x1428660) succeeds as PDF.<br>PDF: Running &#39;pdftoppm -r 150.000000 -f 1 -l 1 &quot;tmp/cache/Cherrydale_eDOQQ_1m_0_033_R1C1.pdf&quot; &quot;./pdf3968087808_0&quot;&#39;<br>

PNM: PNM header contains: width=621, height=544, maxval=255<br>GDALRaw: RawRasterBand(0x1414230,1,0x141d100,<br>              Off=15,PixOff=3,LineOff=1863,Byte,0)<br><br>GDALRaw: RawRasterBand(0x1414230,2,0x141d100,<br>              Off=16,PixOff=3,LineOff=1863,Byte,0)<br>

<br>GDALRaw: RawRasterBand(0x1414230,3,0x141d100,<br>              Off=17,PixOff=3,LineOff=1863,Byte,0)<br><br>GDAL: GDALOpen(./pdf3968087808_0-1.ppm, this=0x1414230) succeeds as PNM.<br>GDAL: GDALDefaultOverviews::OverviewScan()<br>

GDAL: GDALClose(./pdf3968087808_0-1.ppm, this=0x1414230)<br>GDAL: GDALClose(tmp/cache/Cherrydale_eDOQQ_1m_0_033_R1C1.pdf, this=0x1428660)<br>success<br>  TEST: pdf_online_2 ... PDF: OGC Encoding Best Practice style detected<br>

PDF: LGIDict Version : <br>PDF: This is a the largest neatline for now<br>PDF: CTM[0] = 3.81944e-05<br>PDF: CTM[1] = 0<br>PDF: CTM[2] = 0<br>PDF: CTM[3] = 3.81944e-05<br>PDF: CTM[4] = -77.1123283333<br>PDF: CTM[5] = 38.8878783333<br>

PDF: Datum = WGE<br>PDF: Projection.ProjectionType = GEOGRAPHIC<br>GDAL: GDALOpen(PDF:1:tmp/cache/Cherrydale_eDOQQ_1m_0_033_R1C1.pdf, this=0x1408ff0) succeeds as PDF.<br>GDAL: GDALClose(PDF:1:tmp/cache/Cherrydale_eDOQQ_1m_0_033_R1C1.pdf, this=0x1408ff0)<br>

success<br>  TEST: pdf_1 ... PDF: Adobe ISO32000 style Geospatial PDF perhaps ?<br>PDF: VP length = 2<br>PDF: Largest BBox in VP array is element 0<br>PDF: Subtype = GEO<br>PDF: Bounds[0] = 0.000000<br>PDF: Bounds[1] = 1.000000<br>

PDF: Bounds[2] = 0.000000<br>PDF: Bounds[3] = 0.000000<br>PDF: Bounds[4] = 1.000000<br>PDF: Bounds[5] = 0.000000<br>PDF: Bounds[6] = 1.000000<br>PDF: Bounds[7] = 1.000000<br>PDF: GPTS[0] = 44.205359999999998877<br>PDF: GPTS[1] = -65.023790000000005307<br>

PDF: GPTS[2] = 44.535930000000000462<br>PDF: GPTS[3] = -65.035210000000006403<br>PDF: GPTS[4] = 44.544530000000001735<br>PDF: GPTS[5] = -64.475700000000003342<br>PDF: GPTS[6] = 44.213870000000000005<br>PDF: GPTS[7] = -64.467410000000000991<br>

PDF: LPTS[0] = 0.000000<br>PDF: LPTS[1] = 1.000000<br>PDF: LPTS[2] = 0.000000<br>PDF: LPTS[3] = 0.000000<br>PDF: LPTS[4] = 1.000000<br>PDF: LPTS[5] = 0.000000<br>PDF: LPTS[6] = 1.000000<br>PDF: LPTS[7] = 1.000000<br>PDF: GCS.Type = PROJCS<br>

PDF: GCS.WKT = PROJCS[&quot;WGS_1984_UTM_Zone_20N&quot;,GEOGCS[&quot;GCS_WGS_1984&quot;,DATUM[&quot;D_WGS_1984&quot;,SPHEROID[&quot;WGS_1984&quot;,6378137.0,298.257223563]],PRIMEM[&quot;Greenwich&quot;,0.0],UNIT[&quot;Degree&quot;,0.0174532925199433]],PROJECTION[&quot;Transverse_Mercator&quot;],PARAMETER[&quot;False_Easting&quot;,500000.0],PARAMETER[&quot;False_Northing&quot;,0.0],PARAMETER[&quot;Central_Meridian&quot;,-63.0],PARAMETER[&quot;Scale_Factor&quot;,0.9996],PARAMETER[&quot;Latitude_Of_Origin&quot;,0.0],UNIT[&quot;Meter&quot;,1.0]]<br>

PDF: WKT after morphFromESRI() = PROJCS[&quot;WGS_1984_UTM_Zone_20N&quot;,GEOGCS[&quot;GCS_WGS_1984&quot;,DATUM[&quot;WGS_1984&quot;,SPHEROID[&quot;WGS_84&quot;,6378137.0,298.257223563]],PRIMEM[&quot;Greenwich&quot;,0.0],UNIT[&quot;Degree&quot;,0.0174532925199433]],PROJECTION[&quot;Transverse_Mercator&quot;],PARAMETER[&quot;False_Easting&quot;,500000.0],PARAMETER[&quot;False_Northing&quot;,0.0],PARAMETER[&quot;Central_Meridian&quot;,-63.0],PARAMETER[&quot;Scale_Factor&quot;,0.9996],PARAMETER[&quot;Latitude_Of_Origin&quot;,0.0],UNIT[&quot;Meter&quot;,1.0]]<br>

OGRCT: PROJ &gt;= 4.8.0 features enabled<br>OGRCT: Source: +proj=longlat +datum=WGS84 +no_defs <br>OGRCT: Target: +proj=utm +zone=20 +datum=WGS84 +units=m +no_defs <br>GDAL: GDALOpen(data/adobe_style_geospatial.pdf, this=0x1411840) succeeds as PDF.<br>

PDF: Running &#39;pdftoppm -r 200.000000 -f 1 -l 1 &quot;data/adobe_style_geospatial.pdf&quot; &quot;./pdf3968087808_1&quot;&#39;<br>PNM: PNM header contains: width=1700, height=2200, maxval=255<br>GDALRaw: RawRasterBand(0x141b070,1,0x1374c80,<br>

              Off=17,PixOff=3,LineOff=5100,Byte,0)<br><br>GDALRaw: RawRasterBand(0x141b070,2,0x1374c80,<br>              Off=18,PixOff=3,LineOff=5100,Byte,0)<br><br>GDALRaw: RawRasterBand(0x141b070,3,0x1374c80,<br>              Off=19,PixOff=3,LineOff=5100,Byte,0)<br>

<br>GDAL: GDALOpen(./pdf3968087808_1-1.ppm, this=0x141b070) succeeds as PNM.<br>GDAL: GDALClose(./pdf3968087808_1-1.ppm, this=0x141b070)<br>16277<br>GDAL: GDALClose(data/adobe_style_geospatial.pdf, this=0x1411840)<br>fail<br>

    line 164: bad checksum<br><br>Test Script: PDF<br>Succeeded: 2<br>Failed:    1 (0 blew exceptions)<br>Skipped:   0<br>Expected fail:0<br><br>GDAL: In GDALDestroy - unloading GDAL shared library</font></font><font><font face="courier new,monospace"><br>

</font></font></div><font><font face="courier new,monospace"><br clear="all"></font></font><br><font face="courier new,monospace"><font>/**<br> *<br> * Kyle Shannon<br> * <a href="mailto:ksshannon@gmail.com" target="_blank">ksshannon@gmail.com</a><br>

 *<br> */</font></font><font><br></font><br>
<br><br><div class="gmail_quote">On Wed, Dec 21, 2011 at 11:47, Even Rouault <span dir="ltr">&lt;<a href="mailto:even.rouault@mines-paris.org">even.rouault@mines-paris.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Le mercredi 21 décembre 2011 19:30:45, Kyle Shannon a écrit :<br>
<div class="im">&gt; Even,<br>
&gt;<br>
&gt; I rebuilt with GEOS support<br>
<br>
</div>ok I&#39;ll add a test for geos presence to skip the 2 tests if it is not<br>
available.<br>
<div class="im"><br>
&gt; and I added podofo support as well, for fun.  I<br>
&gt; got a failure with a bad checksum in pdf.py:<br>
<br>
</div>Can you just run pdf.py and look at the more precise error report. I believe<br>
it is due to missing poppler-utils ( pdftoppm namely ) that is necesserary to<br>
do the rasterization . See <a href="http://gdal.org/frmt_pdf.html" target="_blank">http://gdal.org/frmt_pdf.html</a><br>
</blockquote></div><br>