[gdal-dev] Page-size of GeoPDF.

Even Rouault even.rouault at spatialys.com
Tue Feb 14 13:12:07 PST 2017


On mardi 14 février 2017 19:43:35 CET Olsen Aron wrote:
> Thanks Even!
> 
> I have tried downloading various versions of GDAL (stable and dev).
> In the documentation, the WRITE_USERUNIT option is said to be supported from
> GDAL version 2.2. As such, I am not sure what download to use, as the
> latest is of 2.1.+ only.

The dev version is 2.2dev, so any thing that mentions 2.2 in the doc requires it.

> 
> Well, having used the RUPS app of IText 5.1 I believe I can conclude, that
> the latest 2.1+ do implement support for WRITE_USERUNIT as I see it updated
> to 2.77777... corresponding to 200 / 72. Nevertheless, setting DPI=200,
> WRITE_USERUNIT=YES and having the sample raster embedded, I don't yield an
> A4 page-size in AAR. It's the same size as without WRITE_USERUNIT=YES. I do
> notice though, that the size of the MediaBox in PDF changes downwards
> accordingly.

You should try with WRITE_USERUNITS=NO or not specifying it at all.

> 
> As said, I have no a priori knowledge of PDF, but for now, I am looking more
> harder.
> 
> I will get back when I have performed a more thourough investigation of what
> is and what is not. Regards,
> Aron
> 
> From: Even Rouault [mailto:even.rouault at spatialys.com]
> Sent: 12. februar 2017 20:56
> To: gdal-dev at lists.osgeo.org
> Cc: Olsen Aron <aron.olsen at sweco.dk>
> Subject: Re: [gdal-dev] Page-size of GeoPDF.
> 
> 
> Aron,
> 
> > Can I somehow accomplish this using the new WRITE_USERUNITS option, or
> > what?
> Hopefully yes. As soon as you specify DPI with GDAL trunk, it implies
> WRITE_USERUNITS=NO.
> 
> 
> 
> Even
> 
> 
> 
> 
> 
> --
> 
> Spatialys - Geospatial professional services
> 
> http://www.spatialys.com


-- 
Spatialys - Geospatial professional services
http://www.spatialys.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20170214/406eb48f/attachment-0001.html>


More information about the gdal-dev mailing list