mupdf-qt
0.1
Qt5 interface of the popular PDF library MuPDF
|
mupdf-qt is a Qt5 interface of the popular PDF library MuPDF. MuPDF is small, fast, and yet complete. It supports PDF 1.7 with transparency, encryption, hyperlinks, annotations, searching and more.
MuPDF homepage: http://mupdf.com/
There are many other features that we don't have time to implement yet. Looking forward to your participation! Here is a list of API current implemented:
After mupdf-qt is built (read "Related Pages" to see how to build mupdf-qt), headers are in "include/" directory and library file is in "build/lib/" directory. Include the header directory and link to the mupdf-qt library file. Then, simply add the following line to your C++ source files:
Pages can be rendered to QImages with the following code:
A PDF document may has a MuPDF::Outline. You can get top level MuPDF::OutlineItem from the MuPDF::Outline. Every MuPDF::OutlineItem may has children (get first child with MuPDF::OutlineItem::down()) and buddies (get next item with MuPDF::OutlineItem::next()):