<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body><div style="font-family:Helvetica,Arial;font-size:13px; ">Hi,</div><div style="font-family:Helvetica,Arial;font-size:13px; "><br></div><div style="font-family:Helvetica,Arial;font-size:13px; ">I have successfully created an XML Composition File as documented at <a href="https://gdal.org/drivers/raster/pdf.html#creation-of-pdf-file-from-a-xml-composition-file-gdal-3-0">https://gdal.org/drivers/raster/pdf.html#creation-of-pdf-file-from-a-xml-composition-file-gdal-3-0</a>, and created a GeoPDF from it using the gdal_create_pdf.py file (from <a href="https://raw.githubusercontent.com/OSGeo/gdal/master/gdal/swig/python/samples/gdal_create_pdf.py">https://raw.githubusercontent.com/OSGeo/gdal/master/gdal/swig/python/samples/gdal_create_pdf.py</a>).</div><div style="font-family:Helvetica,Arial;font-size:13px; "><br></div><div style="font-family:Helvetica,Arial;font-size:13px; ">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.</div><div style="font-family:Helvetica,Arial;font-size:13px; "><br></div><div style="font-family:Helvetica,Arial;font-size:13px; ">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?</div><div style="font-family:Helvetica,Arial;font-size:13px; "><br></div><div style="font-family:Helvetica,Arial;font-size:13px; "><div style="margin: 0px;">Best regards,</div><div style="margin: 0px;"><br></div><div style="margin: 0px;">Robin</div><div style="margin: 0px;"><br></div><div style="margin: 0px;">Dr Robin Wilson</div><div style="margin: 0px;"><a href="http://www.rtwilson.com">www.rtwilson.com</a></div><div style="margin: 0px;"><br></div></div><div class="bloop_container"><div class="bloop_frame">  </div></div><br><div class="gmail_signature"><div style="font-family:helvetica,arial;font-size:13px"><br></div></div></body></html>