: QLabel(parent), manager_ (manager), currentPage_ (0)
{
document_.reset(Poppler::Document::load(document));
+ documentSetup();
showPage();
}
return;
QByteArray data (reply->read(reply->size()));
document_.reset(Poppler::Document::loadFromData(data));
+ documentSetup();
showPage();
reply->deleteLater();
}
+prefix_ void pykit::PDFWidget::documentSetup()
+{
+ document_->setRenderHint(Poppler::Document::Antialiasing, true);
+ document_->setRenderHint(Poppler::Document::TextAntialiasing, true);
+ document_->setRenderHint(Poppler::Document::TextHinting, false);
+}
+
prefix_ void pykit::PDFWidget::showPage()
{
if (! document_)