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 <[email protected]> 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 > [email protected] -- Ian Mayo Deep Blue C Technology Ltd - New technologies, implemented well _______________________________________________ gdal-dev mailing list [email protected] https://lists.osgeo.org/mailman/listinfo/gdal-dev
