PDFium plugin

Albert Astals Cid aacid at kde.org
Tue Jan 17 22:14:49 UTC 2017


El dimarts, 17 de gener de 2017, a les 17:30:29 CET, Gilbert Assaf va 
escriure:
> Hi all,

Hi
 
> 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.  
> 
> 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. How do you normally proceed from here
> on? Reviewboard? A personal branch? 

I guess you can create a pdfium_generator branch or something in okular.

> I attached a git patch file, if somebody would like to try it out.
> 
> 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. 

Doesn't seem very "user friendly" :/

Cheers,
  Albert

> Thanks,
> Gilbert
> 
> === Install depot tools ===
> Needed for fetching and building pdfium
> See instructions:
> https://www.chromium.org/developers/how-tos/install-depot-tools
>  
> === Install pdfium ===
> mkdir repo
> cd repo
> gclient config --unmanaged https://pdfium.googlesource.com/pdfium.git
> gclient sync
> cd pdfium
> export PDFIUM_DIR=`pwd`
> gn gen out/Debug --args="pdf_enable_xfa=false pdf_enable_v8=true
> use_sysroot=false is_debug=true" ninja -C out/Debug pdfium
> 
> === Compile Okular ===
> cd <okular build dir>
> cmake .. -DPDFIUM_ROOT_DIR=$PDFIUM_DIR
> You probably have to add $PDFIUM_DIR dir to your LD_LIBRARY_PATH variable




More information about the Okular-devel mailing list