Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What open source C++ Library can I use to display PDF files in a proprietary closed source application? [closed]

Tags:

c++

pdf

I am working on a proprietary closed source C++ project that requires a built in PDF viewer. We can use open source but not GPL software. LGPL, MIT, Apache, public style licenses are OK as is any license that allows us to keep the source proprietary and closed. I have had a hard time finding a solution that is either not expensive, restrictive or both.

  • PoDoFo handles parsing but not display

  • ImageMagick can convert PDF to image but not help with allowing for text selection and hyperlinks.

  • Poppler is perfect functionality wise but is GPL so I can't use it

  • MuPDF is GPL or too expensive with a paid license

Am I missing something? What do you do when you need PDF in a proprietary C++ application?

like image 280
James Oltmans Avatar asked Oct 21 '22 15:10

James Oltmans


1 Answers

pdfium is a library developped by Google and used within Chromium to render PDFs.

Building it from source can be tricky, but there is a binary distribution on Github provided by a third party developer. The project on Github also supplies the scripts used to generate the binaries and one needs only to provide values to a few parameters to build the library themself.

like image 166
tbaciu Avatar answered Oct 28 '22 22:10

tbaciu