I would like to remove the orthoimage layer from a USGS Topo GeoPDF map. I have Adobe Acrobat Pro 9, but can't find a way to delete a layer. I've tried setting the layer to "Never export" then exporting the pdf, but the image is still there (and in the process I have somehow deleted the geo-referencing info).
Deleting Layers in PDF files should be straightforward, unfortunately not. The user has to create another file to do this with the layer in question.
But some PDF's are locked down. This workaround breaks the security down. Windows (not tried on a Mac)
The unwanted layers always reappear after flattening / merging / saving As, even when you hide them.
Here's what worked:
1) HIDE the layers you want to KEEP. (The layers you want to delete remain visible).
2) Select Tools > Advanced Editing > Touch-up Text Tool.
3) Hit Ctrl-A to select all visible text objects.
4) Hit Delete.
5) Select Tools > Advanced Editing > Touch-up Object Tool.
6) Hit Ctrl-A to select all visible objects.
7) Hit Delete.
8) Now, you want to "merge away" the unwanted layers, which are now empty. In the Layers pane, Click the "Options" pull-down and select "Merge Layers...".
9) Hold down CONTROL and click all the UNWANTED (empty) layers.
10) Click "Add".
11) In the right-hand pane (target layer), select the first layer that you want to KEEP. This will basically merge that layer with all the empty ones, and in effect, delete the empty layers.
12) Hit OK, and you're done. When you save the file, the layers you want to preserve are preserved, and the file size is smaller, reflecting the "deleted" layers.
Technically not a GIS-SE question but is geo-image related.
The gdal_translate utility allows you to exclude layers from the output file but the layers copied to the new geopdf file seem to be combined into one image. If there are options that will avoid that and keep the separate layers perhaps someone with more knowledge will post it here.
I'm using GDAL 1.11.0 to convert USGS GeoPDFs to GeoTiffs. Using gdal_translate I'm able to remove some of the GeoPDF layers such as "Map_Collar" but for some GeoPDFs the "Image" layer apparently cannot be removed. This appears to be the results of processing older GeoPDFs (as noted at GDAL Conversion of US Topo GeoPDFs).
The command that I'm using looks something like this:
gdal_translate.exe -of GTiff -co "TILED=YES" -co "TFW=YES" Inputfile.pdf Outputfile.tif --config GDAL_PDF_LAYERS_OFF "Map_Collar","Map_Frame.Projection_and_Grids","Images" --config GDAL_PDF_DPI 300