5
#include <qt4/poppler-qt4.h>
38
Antialiasing = 0x00000001,
39
TextAntialiasing = 0x00000002,
40
%If(POPPLER_V0_12_1 -)
41
TextHinting = 0x00000004,
43
%If(POPPLER_V0_18_0 -)
44
TextSlightHinting = 0x00000008,
46
%If(POPPLER_V0_22_0 -)
47
OverprintPreview = 0x00000010,
49
%If(POPPLER_V0_24_0 -)
50
ThinLineSolid = 0x00000020,
51
ThinLineShape = 0x00000040,
54
typedef QFlags<Poppler::Document::RenderHint> RenderHints;
56
void setColorDisplayProfile(void *outputProfileA);
57
void setColorDisplayProfileName(const QString &name);
58
void* colorRgbProfile() const;
59
void* colorDisplayProfile() const;
60
static Poppler::Document *load(const QString & filePath,
61
const QByteArray &ownerPassword=QByteArray(),
62
const QByteArray &userPassword=QByteArray()) /Factory, ReleaseGIL/;
63
static Poppler::Document *loadFromData(const QByteArray &fileContents,
64
const QByteArray &ownerPassword=QByteArray(),
65
const QByteArray &userPassword=QByteArray()) /Factory, ReleaseGIL/;
66
Poppler::Page *page(int index) const /Factory/;
67
Poppler::Page *page(const QString &label) const /Factory/;
69
PageMode pageMode() const;
70
PageLayout pageLayout() const;
71
bool unlock(const QByteArray &ownerPassword, const QByteArray &userPassword);
72
bool isLocked() const;
73
QDateTime date( const QString & data ) const;
74
QString info( const QString & data ) const;
75
QStringList infoKeys() const;
76
bool isEncrypted() const;
77
bool isLinearized() const;
78
bool okToPrint() const;
79
bool okToPrintHighRes() const;
80
bool okToChange() const;
81
bool okToCopy() const;
82
bool okToAddNotes() const;
83
bool okToFillForm() const;
84
bool okToCreateFormFields() const;
85
bool okToExtractForAccessibility() const;
86
bool okToAssemble() const;
87
%If(POPPLER_V0_16_0 -)
88
bool getPdfId(QByteArray *permanentId, QByteArray *updateId) const;
90
void getPdfVersion(int *major, int *minor) const;
91
QList<Poppler::FontInfo> fonts() const /ReleaseGIL/;
92
%If(POPPLER_V0_22_0 -)
93
FormType formType() const;
95
Poppler::FontIterator* newFontIterator( int startPage = 0 ) const /Factory/;
96
QByteArray fontData(const Poppler::FontInfo &font) const;
97
QList<Poppler::EmbeddedFile*> embeddedFiles() const;
98
bool hasEmbeddedFiles() const;
99
QDomDocument *toc() const;
100
Poppler::LinkDestination *linkDestination( const QString &name ) /Factory, ReleaseGIL/;
101
void setPaperColor(const QColor &color);
102
QColor paperColor() const;
103
void setRenderBackend( RenderBackend backend );
104
RenderBackend renderBackend() const;
105
static QSet<Poppler::Document::RenderBackend> availableRenderBackends();
106
void setRenderHint( RenderHint hint, bool on = true );
107
RenderHints renderHints() const;
108
Poppler::PSConverter *psConverter() const /Factory/;
109
Poppler::PDFConverter *pdfConverter() const /Factory/;
110
QString metadata() const;
111
bool hasOptionalContent() const;
112
Poppler::OptContentModel *optionalContentModel() /Factory/;
113
QStringList scripts() const;
116
Document(const Poppler::Document &);
120
}; // namespace Poppler