[gdal-dev] Geospatial PDF - page size in Adobe Reader

Even Rouault even.rouault at spatialys.com
Wed Nov 9 02:07:06 PST 2016


Le mercredi 09 novembre 2016 09:41:08, Tomasz Sawka a écrit :
> Hello
> 
> I'm using GDAL 2.1.2 with added patch to PDF driver made by Even Rouault (
> https://trac.osgeo.org/gdal/changeset/34856/). I'm trying to correctly
> create PDF maps for printing in specified page format and DPI value.
> 
> According to this page http://www.papersizes.org/a-sizes-in-pixels.htm I
> was preparing raster file in appropriate resolution:
> A4 with 72 DPI = 595 x 842
> A4 with 300 DPI = 2480 x 3508
> A4 with 600 DPI = 4960 x 7016
> 
> Then i used CreateCopy  with  DPI value set to desired one and
> WRITE_USERUNIT to yes.

As far as I understand the documentation of the option ("When UserUnit is not 
recorded, the printed size will depends on the DPI value."), you should try 
with WRITE_USERUNIT=NO (or not specify it since you specify the DPI value)


-- 
Spatialys - Geospatial professional services
http://www.spatialys.com


More information about the gdal-dev mailing list