<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 & 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 'pdftoppm -r 150.000000 -f 1 -l 1 "tmp/cache/Cherrydale_eDOQQ_1m_0_033_R1C1.pdf" "./pdf3968087808_0"'<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["WGS_1984_UTM_Zone_20N",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",500000.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",-63.0],PARAMETER["Scale_Factor",0.9996],PARAMETER["Latitude_Of_Origin",0.0],UNIT["Meter",1.0]]<br>
PDF: WKT after morphFromESRI() = PROJCS["WGS_1984_UTM_Zone_20N",GEOGCS["GCS_WGS_1984",DATUM["WGS_1984",SPHEROID["WGS_84",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",500000.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",-63.0],PARAMETER["Scale_Factor",0.9996],PARAMETER["Latitude_Of_Origin",0.0],UNIT["Meter",1.0]]<br>
OGRCT: PROJ >= 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 'pdftoppm -r 200.000000 -f 1 -l 1 "data/adobe_style_geospatial.pdf" "./pdf3968087808_1"'<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"><<a href="mailto:even.rouault@mines-paris.org">even.rouault@mines-paris.org</a>></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">> Even,<br>
><br>
> I rebuilt with GEOS support<br>
<br>
</div>ok I'll add a test for geos presence to skip the 2 tests if it is not<br>
available.<br>
<div class="im"><br>
> and I added podofo support as well, for fun. I<br>
> 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>