Engauge Digitizer
2
Loading...
Searching...
No Matches
Pdf
Pdf.h
Go to the documentation of this file.
1
/******************************************************************************************************
2
* (C) 2014 markummitchell@github.com. This file is part of Engauge Digitizer, which is released *
3
* under GNU General Public License version 2 (GPLv2) or (at your option) any later version. See file *
4
* LICENSE or go to gnu.org/licenses for details. Distribution requires prior written permission. *
5
******************************************************************************************************/
6
7
#ifndef PDF_H
8
#define PDF_H
9
10
#include "
ImportCropping.h
"
11
12
namespace
Poppler
{
13
class
Document;
14
}
15
class
QImage;
16
class
QString;
17
19
enum
PdfReturn
{
20
PDF_RETURN_CANCELED
,
21
PDF_RETURN_FAILED
,
22
PDF_RETURN_SUCCESS
23
};
24
28
class
Pdf
29
{
30
public
:
32
Pdf
();
33
35
PdfReturn
load
(
const
QString &fileName,
36
QImage &image,
37
int
resolution,
38
ImportCropping
importCropping,
39
bool
isErrorReportRegressionTest)
const
;
40
41
private
:
42
43
PdfReturn
loadWithCropping (Poppler::Document *document,
44
QImage &image,
45
int
resolution)
const
;
// Dialog is used when not testing
46
PdfReturn
loadWithoutCropping (
const
QString &fileName,
47
QImage &image,
48
int
resolution)
const
;
// No dialog is used during testing. Entire first page will be loaded
49
50
};
51
52
#endif
// PDF_H
ImportCropping.h
ImportCropping
ImportCropping
Definition
ImportCropping.h:11
PdfReturn
PdfReturn
Return values from load operation.
Definition
Pdf.h:19
PDF_RETURN_FAILED
@ PDF_RETURN_FAILED
Definition
Pdf.h:21
PDF_RETURN_CANCELED
@ PDF_RETURN_CANCELED
Definition
Pdf.h:20
PDF_RETURN_SUCCESS
@ PDF_RETURN_SUCCESS
Definition
Pdf.h:22
Pdf::Pdf
Pdf()
Single constructor.
Definition
Pdf.cpp:21
Pdf::load
PdfReturn load(const QString &fileName, QImage &image, int resolution, ImportCropping importCropping, bool isErrorReportRegressionTest) const
Try to load the specified file. Success is indicated in the function return value.
Definition
Pdf.cpp:25
Poppler
Definition
DlgImportCroppingPdf.h:14
Generated on
for Engauge Digitizer by
1.14.0