The error message comes not from MuPDF but from Qt. As long as you haven't linked MuPDF libraries, the GUI is okay. Also, if you create a non-Qt project with MuPDF (update the example.c from MuPDF so that you get a C++ Qt non-Qt project), the output is okay. The error messages pop up when you link MuPDF libraries to a Qt GUI project.
The MuPDF libraries seem to interfere with Qt rendering somehow. You need not even activate MuPDF from the GUI project. It's enough to write a MuPDF-based "RenderPage()", add the libraries and compile. You need not call RenderPage() actually. You lose all texts, including menus, labels on buttons and similar texts in the app. All these texts were pure ASCII. No exotic glyphs.
As to the Poppler: Antialiasing is off completely by default. If someone reads this then the output can be improved considerably by
document = Poppler::Document::load("/home/radek/wk/test.pdf");
document->setRenderHint(Poppler::Document::TextAntialiasing);
document->setRenderHint(Poppler::Document::Antialiasing);
...
document = Poppler::Document::load("/home/radek/wk/test.pdf");
document->setRenderHint(Poppler::Document::TextAntialiasing);
document->setRenderHint(Poppler::Document::Antialiasing);
...
To copy to clipboard, switch view to plain text mode
Bookmarks