Can GDAL be used to determine the resolution of an image embedded inside a PDF? If not GDAL, is there another method?

I'm using gdal_translate to convert TIF+TFW files into geospatial PDF. I know the resolution of the TIF, but I'm not sure that gdal_translate retains that resolution when it puts the image into the PDF file. I need a way to examine the image in the resulting PDF to determine what gdal_translate is doing.

The motivation is that these geospatial PDF files are being developed for use in Avenza PDF Maps, and that app makes use of the embedded image resolution when initially importing and tiling the PDF.

  • Check with gdalinfo your.pdf.
    – user30184
    Commented Jun 29, 2016 at 21:50

1 Answer 1


From the info here http://www.gdal.org/frmt_pdf.html it seems the driver is fully implemented, so you should be able to open the PDF with gdal and then call GDALDataset::GetGeotransform to get the cell resolution

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.