<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div>Thanks </div>
<div><br>
</div>
<div>What about the PDFium git repo which I mentioned? Do I need to build PDFium using that git repo only? </div>
<br>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> David Klaus <dklaus@carlsonsw.com><br>
<b>Sent:</b> Monday, January 13, 2025 11:34 PM<br>
<b>To:</b> Parveen Sharma <sharma1981@outlook.com><br>
<b>Cc:</b> Michał Kowalczuk via gdal-dev <gdal-dev@lists.osgeo.org><br>
<b>Subject:</b> Re: [gdal-dev] Build GDAL PDF Driver with PDFium</font>
<div> </div>
</div>
<style type="text/css">
<!--
.x_style1
{font-family:"Times New Roman"}
-->
</style>
<div>
<div dir="ltr">
<div>Parveen,
<div><br>
</div>
<div>A couple of years ago my company used the following options to generate a GDAL PDF dynamic driver for GDAL 3.7.0:</div>
</div>
<div><br>
</div>
-DGDAL_ENABLE_DRIVER_PDF_PLUGIN=ON
<div>-DGDAL_USE_PDFIUM=ON</div>
<div>-DPDFIUM_INCLUDE_DIR="%~dp0ExtractPDFium\install\include\pdfium"</div>
<div>-DPDFIUM_LIBRARY="%~dp0ExtractPDFium\install\lib\pdfium.lib"</div>
<div><br>
</div>
<div>Obviously the include directory and library paths will depend on your specific folder structure, so you might need to adjust those on your system. But we were successful in building 3.7.0 with GDAL PDF via dll using these options and perhaps they will
work for you as well. Hopefully this reply is helpful to you. Best of luck,</div>
<div>
<div><br>
<br>
</div>
</div>
</div>
<br>
<div class="x_gmail_quote x_gmail_quote_container">
<div dir="ltr" class="x_gmail_attr">On Sun, Jan 12, 2025 at 11:41 PM Parveen Sharma via gdal-dev <<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>> wrote:<br>
</div>
<blockquote class="x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div class="x_msg-3623913973746613345">
<div dir="ltr">
<div style="text-align:left; text-indent:0px; margin:0px; font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Hello<br>
<br>
I am trying to build from <b><u>GDAL from source using v3.9.3 tag</u></b><br>
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
I plan to use "PDFium" library for building GDAL PDF Dynamic driver and have below 3 questions<br>
<br>
<br>
<b>Ques 1</b>) Are below a right combination of CMAKE options?<br>
<br>
</div>
<table style="box-sizing:border-box; border-collapse:collapse; border-spacing:0px">
<tbody>
<tr>
<td style="width:1118.84px; height:22px; border-width:1px; border-style:solid; border-color:rgb(171,171,171); background-color:rgb(204,204,204); vertical-align:top; box-sizing:border-box">
<div style="text-align:left; text-indent:0px; margin:0px; font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<arg value="-D<b>GDAL_ENABLE_DRIVER_PDF=ON</b>"/></div>
<div style="text-align:left; text-indent:0px; margin:0px; font-family:Calibri,Helvetica,sans-serif; font-size:12pt">
<span style="color:rgb(0,0,0)"><arg value="-D<b>GDAL_USE_POPPLER=</b></span><span style="color:rgb(237,92,87)"><b>OFF</b></span><span style="color:rgb(0,0,0)">"/></span></div>
<div style="text-align:left; text-indent:0px; margin:0px; font-family:Calibri,Helvetica,sans-serif; font-size:12pt">
<span style="color:rgb(0,0,0)"><arg value="-D<b>GDAL_USE_PDFIUM</b>=</span><span style="color:rgb(12,136,42)">ON</span><span style="color:rgb(0,0,0)">"/></span></div>
<div style="text-align:left; text-indent:0px; margin:0px; font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<arg value="-D<b>GDAL_ENABLE_DRIVER_PDF_PLUGIN=ON</b>"/></div>
</td>
</tr>
</tbody>
</table>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
In addition I will set option <b>PDFIUM_INCLUDE_DIR </b>to point to<b> </b>Path to an include directory with the ``public/fpdfview.h`` header file and option
<b>PDFIUM_LIBRARY </b>to point to </div>
<pre style="margin-top:0px; border-radius:6px"><div style="text-align:left; text-indent:0px; line-height:1.45; font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">Path to a shared or static library file.</div></pre>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; color:rgb(0,0,0)"><span style="font-size:12pt"><b>Ques 2</b>) Should I be building PDFium from the "<b>master</b>" branch of below fork by Even Rouault to work with GDAL
</span><span style="font-size:16px; background-color:rgb(255,255,255)"><b><u>v3.9.3 ?</u></b></span></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<a href="https://github.com/rouault/pdfium_build_gdal_3_1" id="x_m_-3623913973746613345LPlnk507836" target="_blank">https://github.com/rouault/pdfium_build_gdal_3_1</a><br>
<br>
<b>Ques 3</b>) If the answer to (2) point is yes, then can I use above branch for both Windows and Linux?</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Please suggest and assist.<br>
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Best Regards</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Parveen<br>
<br>
<br>
<br>
<br>
</div>
</div>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
</div>
</blockquote>
</div>
<div><br clear="all">
</div>
<div><br>
</div>
<span class="x_gmail_signature_prefix">-- </span><br>
<div dir="ltr" class="x_gmail_signature">
<div dir="ltr">David Klaus
<div>Carlson Software</div>
</div>
</div>
<br>
<br>
<p style="font-family:Verdana; font-size:10pt; color:#777777"><b>Disclaimer</b></p>
<p style="font-family:Verdana; font-size:8pt; color:#777777">The information contained in this communication from the sender is confidential. It is intended solely for use by the recipient and others authorized to receive it. If you are not the recipient, you
are hereby notified that any disclosure, copying, distribution or taking action in relation of the contents of this information is strictly prohibited and may be unlawful.</p>
</div>
</body>
</html>