[gdal-dev] GDAL and GeoPDF with Poppler (Couple issues)
Robert Zermeno
refriguy68 at yahoo.com
Mon Oct 7 15:26:45 PDT 2013
Ladies/Gents,
I have been using GeoPDF capability with 0.16.3 for a while and enjoy the capabilities GDAL provides. I have wanted to add the capability to turn Layers On/Off using the features provided. Lets assume I have a file called world.pdf that contains more than 5 Layers with sub-layers.
Project Configuration:
GDAL_repos: 9-28-2013
Poppler: version 0.16.3
OS: Windows XP SP3
Build: MSVC 2008
Once built with the configuration above, I used the technique provided in the frmt_pdf.html page using gdal_translate.exe to turn off 1 Layer:
$ gdal_translate.exe c:\world.pdf out.tif --config GDAL_PDF_LAYERS_OFF "Grids"
I assume I used the proper request to only turn off "Grids" and allow all other LAYERS "On". The problem I get is when it executes more layers are turned "off" than the single layer specified.
Here are my issues:
1. How do I request to output a file that turns off one or more Layers and keeps the others on?
2. According to the frmt_pdf.html, under the Configuration Options, GDAL_PDF_LAYERS and GDAL_PDF_LAYERS_OFF both state "When this option is specified, layers not explicitly listed will be turned off".
I hope a quick copy & paste was performed... Which one should explicitly default to turned On? I would think GDAL_PDF_LAYERS_OFF.
3. When I executed gdal_translate.exefrom the request above, I got the following Error:
ERROR 1: Could not find a OCG with Ref (13:0)
ERROR 1: Could not find a OCG with Ref (30:0)
...repeats with different Ref() numbers
ERROR 1: Could not find a OCG with Ref (153:0)
This is a known Poppler issue as you can see here:
https://bugs.freedesktop.org/show_bug.cgi?id=39637
It states that the fix was added to Poppler version 0.17.2 >=
If that is true, the documentation (frmt_pdf.html) should indicate that. I do not know if that is why my generated file is not correct as I do not know what is effect by this recoverable error mentioned above.
I have not added a ticket for GDAL before, where is the location I can add future bugs if they arise?
Robert
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20131007/077759cf/attachment.html>
More information about the gdal-dev
mailing list