[gdal-dev] On external PDF libraries

Andreas Neumann a.neumann at carto.net
Wed Aug 21 05:38:39 PDT 2019


Hi Even,

I think I got building with poppler to work.

gdalinfo and ogrinfo show both:

PDF -raster,vector- (w+): Geospatial PDF

However, QGIS still thinks there is no PDF read support in QGIS. When 
trying to export to GeoPDF there is a message:

GDAL PDF driver was not build with PDF read support. A build with PDF 
read support is required for GeoPDF creation.

Any ideas what might still be wrong?

Why is QGIS complaining about PDF read support when I want to export GeoPDF?

Thanks and greetings,

Andreas

Am 21.08.19 um 13:12 schrieb Even Rouault:
> Andreas,
>
>> I am trying to test GeoPDF support in QGIS and have questions on the
>> external library dependencies in GDAL. I am trying to interpret the
>> notes on https://gdal.org/drivers/raster/pdf.html
>>
>> Which of the three options (Poppler, PoDoFo, PDFium) is recommended? I
>> work on Ubuntu 18.04 and I can build libraries from source if necessary.
>> PoDoFo seems limited - so better not use it?
> For non-rendering tasks such as creating a PDF, it should be OK, but I know I
> had issues at runtime with recent versions of PoDoFo
>
>> PDFium seems to be
>> complicated to install -
> Yes, and the driver assumes an old version of PDFium. Would require some work
> to make it work with newer ones.
>
>> so perhaps poppler?
> That's probably the simplest option and it will give you good results. No need
> to build it from source. The version already compiled in your distro is fine.
> Install the 'libpoppler-private-dev' package before building GDAL with
> ./configure --with-poppler
>
> Even
>


More information about the gdal-dev mailing list