[gdal-dev] Build GDAL PDF Driver with PDFium

Parveen Sharma sharma1981 at outlook.com
Sun Jan 12 20:40:55 PST 2025


Hello

I am trying to build from GDAL from source using v3.9.3 tag

I plan to use "PDFium" library for building GDAL PDF Dynamic driver and have below 3 questions


Ques 1) Are below a right combination of CMAKE options?

<arg value="-DGDAL_ENABLE_DRIVER_PDF=ON"/>
<arg value="-DGDAL_USE_POPPLER=OFF"/>
<arg value="-DGDAL_USE_PDFIUM=ON"/>
<arg value="-DGDAL_ENABLE_DRIVER_PDF_PLUGIN=ON"/>


In addition I will set option PDFIUM_INCLUDE_DIR to point to Path to an include directory with the ``public/fpdfview.h`` header file and option PDFIUM_LIBRARY to point to

Path to a shared or static library file.

Ques 2) Should I be building PDFium from the "master" branch of below fork by Even Rouault to work with GDAL v3.9.3 ?

https://github.com/rouault/pdfium_build_gdal_3_1

Ques 3) If the answer to (2) point is yes, then can I use above branch for both Windows and Linux?

Please suggest and assist.

Best Regards
Parveen




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20250113/a8fab0f4/attachment.htm>


More information about the gdal-dev mailing list