<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>
<div>Hi all,</div>

<div> </div>

<div>I worked on an okular pdf plugin using pdfium as a backend. At this point it is little more than a “proof-of-concept”. But you can already view simple pdf files.  </div>

<div><br/>
I would like to get some feedback on this: maybe somebody else is already working on an okular pdfium plugin? I am relatively new to KDE and don’t know all the development processes.<br/>
How do you normally proceed from here on? Reviewboard? A personal branch?</div>

<div> </div>

<div>I attached a git patch file, if somebody would like to try it out.</div>

<div><br/>
A small warning: pdfium only works on x64 and at this point it is basically a mixture of static and shared libraries. So you definitely have to compile it yourself.</div>

<div> </div>

<div>Thanks,<br/>
Gilbert</div>

<div><br/>
=== Install depot tools ===<br/>
Needed for fetching and building pdfium<br/>
See instructions:<br/>
https://www.chromium.org/developers/how-tos/install-depot-tools</div>

<div> </div>

<div>=== Install pdfium ===<br/>
mkdir repo<br/>
cd repo<br/>
gclient config --unmanaged https://pdfium.googlesource.com/pdfium.git<br/>
gclient sync<br/>
cd pdfium<br/>
export PDFIUM_DIR=`pwd`<br/>
gn gen out/Debug --args="pdf_enable_xfa=false pdf_enable_v8=true use_sysroot=false is_debug=true"<br/>
ninja -C out/Debug pdfium</div>

<div><br/>
=== Compile Okular ===<br/>
cd <okular build dir><br/>
cmake .. -DPDFIUM_ROOT_DIR=$PDFIUM_DIR</div>

<div>You probably have to add $PDFIUM_DIR dir to your LD_LIBRARY_PATH variable</div>
</div></div></body></html>