I have pdftoppm: [kyle@localhost gdrivers]$ pdftoppm -v pdftoppm version 0.18.0 Copyright 2005-2011 The Poppler Developers - http://poppler.freedesktop.org Copyright 1996-2004 Glyph & Cog, LLC
I can get the checksum: [kyle@localhost gdrivers]$ gdalchksum.py data/adobe_style_geospatial.pdf 17637 17637 17637 running just the test: [kyle@localhost gdrivers]$ python pdf.py TEST: pdf_online_1 ... success TEST: pdf_online_2 ... success TEST: pdf_1 ... 16277 fail line 164: bad checksum Test Script: PDF Succeeded: 2 Failed: 1 (0 blew exceptions) Skipped: 0 Expected fail:0 Running a verbose test: [kyle@localhost gdrivers]$ python pdf.py TEST: pdf_online_1 ... PDF: OGC Encoding Best Practice style detected PDF: LGIDict Version : PDF: This is a the largest neatline for now PDF: CTM[0] = 3.81944e-05 PDF: CTM[1] = 0 PDF: CTM[2] = 0 PDF: CTM[3] = 3.81944e-05 PDF: CTM[4] = -77.1123283333 PDF: CTM[5] = 38.8878783333 PDF: Datum = WGE PDF: Projection.ProjectionType = GEOGRAPHIC GDAL: GDALOpen(tmp/cache/Cherrydale_eDOQQ_1m_0_033_R1C1.pdf, this=0x1428660) succeeds as PDF. PDF: Running 'pdftoppm -r 150.000000 -f 1 -l 1 "tmp/cache/Cherrydale_eDOQQ_1m_0_033_R1C1.pdf" "./pdf3968087808_0"' PNM: PNM header contains: width=621, height=544, maxval=255 GDALRaw: RawRasterBand(0x1414230,1,0x141d100, Off=15,PixOff=3,LineOff=1863,Byte,0) GDALRaw: RawRasterBand(0x1414230,2,0x141d100, Off=16,PixOff=3,LineOff=1863,Byte,0) GDALRaw: RawRasterBand(0x1414230,3,0x141d100, Off=17,PixOff=3,LineOff=1863,Byte,0) GDAL: GDALOpen(./pdf3968087808_0-1.ppm, this=0x1414230) succeeds as PNM. GDAL: GDALDefaultOverviews::OverviewScan() GDAL: GDALClose(./pdf3968087808_0-1.ppm, this=0x1414230) GDAL: GDALClose(tmp/cache/Cherrydale_eDOQQ_1m_0_033_R1C1.pdf, this=0x1428660) success TEST: pdf_online_2 ... PDF: OGC Encoding Best Practice style detected PDF: LGIDict Version : PDF: This is a the largest neatline for now PDF: CTM[0] = 3.81944e-05 PDF: CTM[1] = 0 PDF: CTM[2] = 0 PDF: CTM[3] = 3.81944e-05 PDF: CTM[4] = -77.1123283333 PDF: CTM[5] = 38.8878783333 PDF: Datum = WGE PDF: Projection.ProjectionType = GEOGRAPHIC GDAL: GDALOpen(PDF:1:tmp/cache/Cherrydale_eDOQQ_1m_0_033_R1C1.pdf, this=0x1408ff0) succeeds as PDF. GDAL: GDALClose(PDF:1:tmp/cache/Cherrydale_eDOQQ_1m_0_033_R1C1.pdf, this=0x1408ff0) success TEST: pdf_1 ... PDF: Adobe ISO32000 style Geospatial PDF perhaps ? PDF: VP length = 2 PDF: Largest BBox in VP array is element 0 PDF: Subtype = GEO PDF: Bounds[0] = 0.000000 PDF: Bounds[1] = 1.000000 PDF: Bounds[2] = 0.000000 PDF: Bounds[3] = 0.000000 PDF: Bounds[4] = 1.000000 PDF: Bounds[5] = 0.000000 PDF: Bounds[6] = 1.000000 PDF: Bounds[7] = 1.000000 PDF: GPTS[0] = 44.205359999999998877 PDF: GPTS[1] = -65.023790000000005307 PDF: GPTS[2] = 44.535930000000000462 PDF: GPTS[3] = -65.035210000000006403 PDF: GPTS[4] = 44.544530000000001735 PDF: GPTS[5] = -64.475700000000003342 PDF: GPTS[6] = 44.213870000000000005 PDF: GPTS[7] = -64.467410000000000991 PDF: LPTS[0] = 0.000000 PDF: LPTS[1] = 1.000000 PDF: LPTS[2] = 0.000000 PDF: LPTS[3] = 0.000000 PDF: LPTS[4] = 1.000000 PDF: LPTS[5] = 0.000000 PDF: LPTS[6] = 1.000000 PDF: LPTS[7] = 1.000000 PDF: GCS.Type = PROJCS 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]] 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]] OGRCT: PROJ >= 4.8.0 features enabled OGRCT: Source: +proj=longlat +datum=WGS84 +no_defs OGRCT: Target: +proj=utm +zone=20 +datum=WGS84 +units=m +no_defs GDAL: GDALOpen(data/adobe_style_geospatial.pdf, this=0x1411840) succeeds as PDF. PDF: Running 'pdftoppm -r 200.000000 -f 1 -l 1 "data/adobe_style_geospatial.pdf" "./pdf3968087808_1"' PNM: PNM header contains: width=1700, height=2200, maxval=255 GDALRaw: RawRasterBand(0x141b070,1,0x1374c80, Off=17,PixOff=3,LineOff=5100,Byte,0) GDALRaw: RawRasterBand(0x141b070,2,0x1374c80, Off=18,PixOff=3,LineOff=5100,Byte,0) GDALRaw: RawRasterBand(0x141b070,3,0x1374c80, Off=19,PixOff=3,LineOff=5100,Byte,0) GDAL: GDALOpen(./pdf3968087808_1-1.ppm, this=0x141b070) succeeds as PNM. GDAL: GDALClose(./pdf3968087808_1-1.ppm, this=0x141b070) 16277 GDAL: GDALClose(data/adobe_style_geospatial.pdf, this=0x1411840) fail line 164: bad checksum Test Script: PDF Succeeded: 2 Failed: 1 (0 blew exceptions) Skipped: 0 Expected fail:0 GDAL: In GDALDestroy - unloading GDAL shared library /** * * Kyle Shannon * [email protected] * */ On Wed, Dec 21, 2011 at 11:47, Even Rouault <[email protected]>wrote: > Le mercredi 21 décembre 2011 19:30:45, Kyle Shannon a écrit : > > Even, > > > > I rebuilt with GEOS support > > ok I'll add a test for geos presence to skip the 2 tests if it is not > available. > > > and I added podofo support as well, for fun. I > > got a failure with a bad checksum in pdf.py: > > Can you just run pdf.py and look at the more precise error report. I > believe > it is due to missing poppler-utils ( pdftoppm namely ) that is necesserary > to > do the rasterization . See http://gdal.org/frmt_pdf.html >
_______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev
