8 #include "poppler-qt5.h" 9 #include <QApplication> 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 ()) {
ImportCroppingUtilPdf()
Single constructor.
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 ...
Storage of one imported image and the data attached to that image.