[gdal-dev] Can a GepPDF be generated using a Composition file from command line?
Ian Mayo
ian at planetmayo.com
Wed Aug 26 12:16:35 PDT 2020
aah, a team member has directed me to where this question got asked (&
answered) a few days ago:
https://lists.osgeo.org/pipermail/gdal-dev/2020-August/052505.html
On Wed, 26 Aug 2020, 14:03 Ian Mayo, <ian at planetmayo.com> wrote:
> Hello Andrew,
> thanks for the (very) prompt response.
>
> I'm aware of the Python route - I referred to it in my posting.
>
> My context is that I'd like to generate the PDF on a system that only
> has GDAL installed. Your strategy would involve distributing (and
> maintaining) a python distribution too.
>
> So, I guess my question remains:
>
> "Is it possible to use the XML Composition file directly from GDAL
> commands on the command line?"
>
> Thanks for your support,
> Ian
>
> On Wed, 26 Aug 2020 at 13:50, Andrew C Aitchison <andrew at aitchison.me.uk>
> wrote:
> >
> > On Wed, 26 Aug 2020, Ian Mayo wrote:
> >
> > > The documentation page for PDF via GDAL includes the description for
> > > using an XML Composition File:
> > >
> https://gdal.org/drivers/raster/pdf.html#creation-of-pdf-file-from-a-xml-composition-file-gdal-3-0
> > >
> > > But, the description only gives examples of the XML Composition file
> > > being used from C++ or Python code.
> > >
> > > Is it possible to use the XML Composition file directly from GDAL
> > > commands on the command line?
> >
> > That page links to
> >
> https://raw.githubusercontent.com/OSGeo/gdal/master/gdal/swig/python/samples/gdal_create_pdf.py
> > which is a python script to do exactly that.
> >
> > > (presumably the Composition file would be passed as a -co creation
> > > option parameter)
> >
> > def Usage():
> > print('Usage: gdal_create_pdf composition.xml out.pdf')
> > return -1
> >
> > ... so you don't even need the "-co" argument.
> >
> > --
> > Andrew C. Aitchison Kendal, UK
> > andrew at aitchison.me.uk
>
>
>
> --
> Ian Mayo
> Deep Blue C Technology Ltd
> - New technologies, implemented well
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20200826/8841f296/attachment.html>
More information about the gdal-dev
mailing list