TransWikia.com

Determining resolution of specific image in PDF document?

Geographic Information Systems Asked by krock on February 18, 2021

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.

One Answer

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

Answered by James on February 18, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP