0

I am trying to compile GDAL with support to convert to PDF format. When I try gdalinfo --formats the option for PDF is not present. I am using 2.1.2. The command I am using to build GDAL is nmake /f makefile.vc WIN64=YES. Is it possible to convert raster data to PDF format using GDAL?

closed as off-topic by user30184, whyzar, nmtoken, Evil Genius, Dan C Jan 19 '17 at 15:22

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions relating to general IT or with no clear GIS component, are off-topic here but can be researched/asked at Stack Overflow (software development), Super User (computing hardware and software), Database Administrators (relational databases) and other SE sites" – user30184, whyzar, nmtoken, Evil Genius, Dan C
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 2
    Have you been reading the manual gdal.org/frmt_pdf.html? – user30184 Jan 18 '17 at 22:03
  • While GDAL is GIS software, and compiling it may sometimes be on topic here, you are liking facing issues with the dependencies (getting them installed/built/etc.) and those questions would be better suited for other sites. – Evil Genius Jan 19 '17 at 12:02
  • Yes, and I did read that writing requires no backend support. – Ankit Bhandary Jan 19 '17 at 13:54
1

PDF support is available on my version of GDAL (GDAL 1.11.5, released 2016/07/01). Try updating your version of GDAL. Also, see the GDAL documentation on Geospatial PDF support. Here is an example from the documentation:

gdal_translate -of PDF main_raster.tif my.pdf -co LAYER_NAME=main_raster
               -co EXTRA_RASTERS=another_raster.tif -co EXTRA_RASTERS_LAYER_NAME=another_raster
               -co OFF_LAYERS=another_raster -co EXCLUSIVE_LAYERS=main_raster,another_raster

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