[gdal-dev] PDF generation on Linux

Andrew C Aitchison andrew at aitchison.me.uk
Wed Aug 12 06:53:41 PDT 2020


On Wed, 12 Aug 2020, Kélian Devillier wrote:

> Hello,
>
> I'm trying to work with GeospatialPDF generation from an XML file on Linux.
>
> Using Ubuntu 18.04, I compiled the sources from version 3.0.4 myself.
>
> Unfortunately, when I tried to execute the Python script with my xml, I got
> the following message :
> ERROR 6: PDF node not supported due to PDF read support in this GDAL build
>
> Is it due to the fact that I don't have any PDF viewer capable of reading
> GeospatialPDF installed ?

No.

> And if that is the case, is there any way of bypassing the error, given
> that I can just transfer the file to a Windows system to read it.

What do
 	gdalinfo --formats |& grep -i pdf
and
 	ogrinfo --formats |& grep -i pdf
report ?
Does the system gdalinfo or ogrinfo (v2.?? IIRC) give a different answer ?

Did you include any of the configure options
 	--with-poppler=...
 	--with-podofo=...
 	--with-pdfium=...
 	--disable-driver-pdf
 	--enable-pdf-plugin
when you built gdal ?
The --with-... options may require a suitable path to the library.

I'm not sure whether all of these have PDF write support.


-- 
Andrew C. Aitchison					Kendal, UK
 			andrew at aitchison.me.uk


More information about the gdal-dev mailing list