Robin, > I have successfully created an XML Composition File as documented > at https://gdal.org/drivers/raster/pdf.html#creation-of-pdf-file-from-a-xml > -composition-file-gdal-3-0, and created a GeoPDF from it using the > gdal_create_pdf.py file > (from https://raw.githubusercontent.com/OSGeo/gdal/master/gdal/swig/python/ > samples/gdal_create_pdf.py). > > However, for my particular application, it would be really useful to be able > to create the PDF using the standard GDAL command-line tools > (gdal_translate and so on), as we would rather not require Python on the > system that we're deploying to. > > Is there any way of creating a PDF from a composition XML file using just > the standard command-line tools? The documentation states "The GDALCreate() > API must be used with width = height = bands = 0 and datatype = GDT_Unknown > and COMPOSITION_FILE must be the single creation option.", and I've tried > playing with the options to various commands such as gdal_translate, but > can't seem to get it to work. Is it possible?
No, I don't think existing C/C++ based command line utilities will do, but you should be able to trivially convert gdal_create_pdf.py to C/C++ using GDALCreate() See https://gdal.org/tutorials/raster_api_tut.html#using-create Even -- Spatialys - Geospatial professional services http://www.spatialys.com
_______________________________________________ gdal-dev mailing list [email protected] https://lists.osgeo.org/mailman/listinfo/gdal-dev
