-
Notifications
You must be signed in to change notification settings - Fork 32
/
poppler-page.sip
96 lines (91 loc) · 3.19 KB
/
poppler-page.sip
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
namespace Poppler {
class Page {
%TypeHeaderCode
#include <qt5/poppler-qt5.h>
%End
public:
~Page();
enum Rotation {
Rotate0 = 0,
Rotate90 = 1,
Rotate180 = 2,
Rotate270 = 3,
};
enum PageAction {
Opening,
Closing,
};
enum TextLayout {
PhysicalLayout,
RawOrderLayout,
};
enum PainterFlag {
DontSaveAndRestore = 0x00000001,
};
typedef QFlags<Poppler::Page::PainterFlag> PainterFlags;
QImage renderToImage(double xres=72.0, double yres=72.0, int x=-1, int y=-1, int w=-1, int h=-1, Rotation rotate = Rotate0) const /ReleaseGIL/;
bool renderToPainter(QPainter* painter, double xres=72.0, double yres=72.0, int x=-1, int y=-1, int w=-1, int h=-1,
Rotation rotate = Rotate0, PainterFlags flags = 0) const /ReleaseGIL/;
QImage thumbnail() const;
QString text(const QRectF &rect, TextLayout textLayout) const;
QString text(const QRectF &rect) const;
enum SearchDirection {
FromTop,
NextResult,
PreviousResult,
};
enum SearchMode {
CaseSensitive,
CaseInsensitive,
};
%If(POPPLER_V0_31_0 -)
enum SearchFlag {
%If(POPPLER_V0_63_0 -)
NoSearchFlags = 0x00000000,
%End
IgnoreCase = 0x00000001,
WholeWords = 0x00000002,
%If(POPPLER_V0_74_0 -)
IgnoreDiacritics = 0x00000004,
%End
};
typedef QFlags<Poppler::Page::SearchFlag> SearchFlags;
%End
bool search(const QString &text, double &rectLeft, double &rectTop, double &rectRight, double &rectBottom, SearchDirection direction, SearchMode caseSensitive, Rotation rotate = Rotate0) const /Deprecated, ReleaseGIL/;
bool search(const QString &text, double &rectLeft, double &rectTop, double &rectRight, double &rectBottom, SearchDirection direction, SearchFlags flags = 0, Rotation rotate = Rotate0) const /ReleaseGIL/;
%If(POPPLER_V0_22_0 -)
QList<QRectF> search(const QString &text, SearchMode caseSensitive, Rotation rotate = Rotate0) const /Deprecated, ReleaseGIL/;
%End
%If(POPPLER_V0_31_0 -)
QList<QRectF> search(const QString &text, SearchFlags flags = 0, Rotation rotate = Rotate0) const /ReleaseGIL/;
%End
QList<Poppler::TextBox*> textList(Rotation rotate = Rotate0) const;
QSizeF pageSizeF() const;
QSize pageSize() const;
Poppler::PageTransition *transition() const;
Poppler::Link *action( PageAction act ) const;
enum Orientation {
Landscape,
Portrait,
Seascape,
UpsideDown,
};
Orientation orientation() const;
void defaultCTM(double *CTM, double dpiX, double dpiY, int rotate, bool upsideDown);
QList<Poppler::Link*> links() const;
QList<Poppler::Annotation*> annotations() const /Factory/;
%If(POPPLER_V0_28_0 -)
QList<Poppler::Annotation*> annotations(const QSet<Poppler::Annotation::SubType> &subtypes) const /Factory/;
%End
%If(POPPLER_V0_20_0 -)
void addAnnotation( const Annotation *ann );
void removeAnnotation( const Annotation *ann );
%End
QList<Poppler::FormField*> formFields() const;
double duration() const;
QString label() const;
private:
Page();
Page( const Poppler::Page & );
}; // class Page
}; // namespace Poppler