Search code examples
imagepdfqt4antialiasingpoppler

Why poppler pdf rendering so bad in my program (Qt4)?


I am experimenting with poppler pdf library and Qt4. I use this instruction:

image = pdfPage->->renderToImage(72.0,72.0, 
                                 0,0,
                                 pdfPage->pageSize().width(),
                                 pdfPage->pageSize().height());

Are there better parameters? Even if I put 200.0,200.0 quality is bad, compared to pdf reader in Ubuntu.


Solution

  • document->setRenderHint(Poppler::Document::TextAntialiasing); was useful