10 #include "poppler-qt5.h"
11 #include <QApplication>
29 bool isErrorReportRegressionTest)
const
40 QApplication::setOverrideCursor(Qt::BusyCursor);
43 rtn = loadWithCropping (document,
49 rtn = loadWithoutCropping (fileName,
54 QApplication::restoreOverrideCursor();
71 if (dlg.exec() == QDialog::Accepted) {
76 if (!image.isNull()) {
87 PdfReturn Pdf::loadWithoutCropping (
const QString &fileName,
94 if (fileName.right (4).toLower () ==
".pdf") {
97 Document *document = Document::load (fileName);
99 if (document !=
nullptr) {
100 if (!document->isLocked ()) {
103 if (page !=
nullptr) {
105 image = page->renderToImage (resolution,
112 if (!image.isNull()) {