8#include "poppler-qt5.h"
18 const QString &fileName,
24 bool cropping =
false;
26 if (!isErrorReportRegressionTest) {
29 if (fileName.right (4).toLower () ==
".pdf") {
32 QApplication::setOverrideCursor (Qt::BusyCursor);
33 document = Document::load (fileName);
34 QApplication::restoreOverrideCursor();
35 if (document !=
nullptr) {
36 if (!document->isLocked ()) {
@ IMPORT_CROPPING_MULTIPAGE_PDFS
Storage of one imported image and the data attached to that image.
bool applyImportCropping(bool isRegression, const QString &fileName, ImportCropping importCropping, Poppler::Document *&document) const
For pdf files, skip cropping dialog during regression testing, otherwise crop if it is always turned ...
ImportCroppingUtilPdf()
Single constructor.