Sunday, 4 December 2016

gdal translate - white page border when converting geoPDF to geoTiff with gdal_translate



I am using gdal_translate to convert some USFS geoPDF maps to geotiff images.
I actually set more layers off than is listed in the code snippet below but I've pulled them for clarity.
The resulting geotiff contains the desired PDF content but also has a white page border. Is it possible to for gdal_translate to do the rendering without the white border?
I've seen a site with a reference to using esri ArcGIS to remove the border after gdal_translate processing but that is very cost prohibitive.
If it is not possible to do with any of the gdal utilities, what is the best way to remove the border? Crop with photoshop and add the geospatial references back?


gdal_translate -of GTiff -co "TILED=YES" -co "TFW=YES" D:\USFSTopo.pdf D:\USFSTopo.tif --config GDAL_PDF_LAYERS_OFF Other_4,Adjacent_Quadrangles,Quad_Location_Diagram,Map.Measured_Grid --config GDAL_PDF_DPI 300


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...