Page 1 of 1

Pdfium library

Posted: Tue May 17, 2016 11:03 pm
by Hadrianus
Google's opensource Pdfium seems to be a promising library for bringing a real PDF viewer inside an PB application on all OS. It has Foxit software inside. But inspite of being opensource, I can not find understandable documentation and code, except for pages about wxWidgets and their use of Pdfium. Has anyone think about this library too? Where to start?

Re: Pdfium library

Posted: Wed May 18, 2016 6:42 pm
by fsw
Never heard of Pdfium before so I looked it up.

Here are 2 github repos that might be of help:
https://github.com/hfiguiere/pdfium
https://github.com/pvginkel/PdfiumViewer

In github repo PdfiumViewer under PdfiumViewer/Libraries/Pdfium/ there are Windows DLLs ready to be used.
PdfiumViewer itself is written in C# and Pdfium is written in C++.

Unless the DLLs are built to be used with C you might have a hard time to use them with PureBasic.

Re: Pdfium library

Posted: Fri May 20, 2016 2:32 pm
by Mohawk70
Thanks for posting that !

Re: Pdfium library

Posted: Sun May 22, 2016 1:12 pm
by Hadrianus
fsw wrote:Never heard of Pdfium before so I looked it up.

Here are 2 github repos that might be of help:
https://github.com/hfiguiere/pdfium
https://github.com/pvginkel/PdfiumViewer

In github repo PdfiumViewer under PdfiumViewer/Libraries/Pdfium/ there are Windows DLLs ready to be used.
PdfiumViewer itself is written in C# and Pdfium is written in C++.

Unless the DLLs are built to be used with C you might have a hard time to use them with PureBasic.
That's right. That's also one of the reason I posted this subject. Pdfium seems to be very promising, but there's total lack of decent information from de Pdfium side (I know all about these downloads in Github, but even Github is a complete disaster itself).

Also from PB side there is lack of information about Interface, Import, Library, etc. I miss good examples and explanation. Over the years many times this subject passed this forum, but only for experts in their expertlanguage, not for common PB-users, like me.