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 _______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev