1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
|
namespace Poppler {
class Document {
%TypeHeaderCode
#include <qt4/poppler-qt4.h>
%End
public:
%If(POPPLER_V0_22_0 -)
enum FormType {
NoForm,
AcroForm,
XfaForm,
};
%End
enum PageMode {
UseNone,
UseOutlines,
UseThumbs,
FullScreen,
UseOC,
UseAttach,
};
enum PageLayout {
NoLayout,
SinglePage,
OneColumn,
TwoColumnLeft,
TwoColumnRight,
TwoPageLeft,
TwoPageRight,
};
enum RenderBackend {
SplashBackend,
ArthurBackend,
};
enum RenderHint {
Antialiasing = 0x00000001,
TextAntialiasing = 0x00000002,
%If(POPPLER_V0_12_1 -)
TextHinting = 0x00000004,
%End
%If(POPPLER_V0_18_0 -)
TextSlightHinting = 0x00000008,
%End
%If(POPPLER_V0_22_0 -)
OverprintPreview = 0x00000010,
%End
%If(POPPLER_V0_24_0 -)
ThinLineSolid = 0x00000020,
ThinLineShape = 0x00000040,
%End
};
typedef QFlags<Poppler::Document::RenderHint> RenderHints;
void setColorDisplayProfile(void *outputProfileA);
void setColorDisplayProfileName(const QString &name);
void* colorRgbProfile() const;
void* colorDisplayProfile() const;
static Poppler::Document *load(const QString & filePath,
const QByteArray &ownerPassword=QByteArray(),
const QByteArray &userPassword=QByteArray()) /Factory, ReleaseGIL/;
static Poppler::Document *loadFromData(const QByteArray &fileContents,
const QByteArray &ownerPassword=QByteArray(),
const QByteArray &userPassword=QByteArray()) /Factory, ReleaseGIL/;
Poppler::Page *page(int index) const /Factory/;
Poppler::Page *page(const QString &label) const /Factory/;
int numPages() const;
PageMode pageMode() const;
PageLayout pageLayout() const;
bool unlock(const QByteArray &ownerPassword, const QByteArray &userPassword);
bool isLocked() const;
QDateTime date( const QString & data ) const;
QString info( const QString & data ) const;
QStringList infoKeys() const;
bool isEncrypted() const;
bool isLinearized() const;
bool okToPrint() const;
bool okToPrintHighRes() const;
bool okToChange() const;
bool okToCopy() const;
bool okToAddNotes() const;
bool okToFillForm() const;
bool okToCreateFormFields() const;
bool okToExtractForAccessibility() const;
bool okToAssemble() const;
%If(POPPLER_V0_16_0 -)
bool getPdfId(QByteArray *permanentId, QByteArray *updateId) const;
%End
void getPdfVersion(int *major, int *minor) const;
QList<Poppler::FontInfo> fonts() const /ReleaseGIL/;
%If(POPPLER_V0_22_0 -)
FormType formType() const;
%End
Poppler::FontIterator* newFontIterator( int startPage = 0 ) const /Factory/;
QByteArray fontData(const Poppler::FontInfo &font) const;
QList<Poppler::EmbeddedFile*> embeddedFiles() const;
bool hasEmbeddedFiles() const;
QDomDocument *toc() const;
Poppler::LinkDestination *linkDestination( const QString &name ) /Factory, ReleaseGIL/;
void setPaperColor(const QColor &color);
QColor paperColor() const;
void setRenderBackend( RenderBackend backend );
RenderBackend renderBackend() const;
static QSet<Poppler::Document::RenderBackend> availableRenderBackends();
void setRenderHint( RenderHint hint, bool on = true );
RenderHints renderHints() const;
Poppler::PSConverter *psConverter() const /Factory/;
Poppler::PDFConverter *pdfConverter() const /Factory/;
QString metadata() const;
bool hasOptionalContent() const;
Poppler::OptContentModel *optionalContentModel() /Factory/;
QStringList scripts() const;
private:
Document();
Document(const Poppler::Document &);
}; // class Document
}; // namespace Poppler
|