[gdal-dev] Removing layers from GeoSpatial PDF with ogr2ogr?

David Strip gdal at stripfamily.net
Thu Apr 26 16:13:26 PDT 2018


On 4/26/2018 3:33 PM, Tobias Wendorff wrote:
> Am Mi, 25.04.2018, 21:02 schrieb Even Rouault:
>> This is expected. When doing ogr2ogr you run into limitations
>> of the read side and write side of the PDF driver, and running
>> through OGR abstraction in the middle, so loss is expected in
>> the case of PDF.
> Even experienced PDF-orientated applications, like Ghostscript,
> are have problems with PDF layers.
>
> I had a similar problem in the past. I ended up unpacking the PDF
> to an editable text-only format and removed the objects manually.
>
> Maybe you can find someone with Acrobat PDF (the editor one), who
> can fix the files for you?
>
>
I'm working with the "new" USGS topo maps which are distributed in
geospatial PDF format. I'm trying to remove the orthoimage layer. There
is a hack using ghostscript to remove all bitmaps that works for this
special case.


More information about the gdal-dev mailing list