7 #include "ImportCroppingUtilPdf.h" 8 #include "poppler-qt5.h" 9 #include <QApplication> 18 const QString &fileName,
19 ImportCropping importCropping,
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();
36 if (!document->isLocked ()) {
38 cropping = (importCropping == IMPORT_CROPPING_ALWAYS ||
39 (importCropping == IMPORT_CROPPING_MULTIPAGE_PDFS && document->numPages () > 1));
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.