~ubuntu-branches/debian/sid/python-poppler-qt4/sid

« back to all changes in this revision

Viewing changes to poppler-page.sip

  • Committer: Package Import Robot
  • Author(s): Anthony Fok
  • Date: 2015-09-02 02:57:58 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20150902025758-e6hy7jbboeoy1yq2
Tags: 0.24.0-1
* New upstream release. (Closes: #758108)
* Revamp package with py2dsc (python-stdeb), pybuild and friends.
* Add new python3-poppler-qt4 binary package for Python 3.
* Convert debian/copyright to machine-readable format v1.0.
* Bump Standards-Version to 3.9.6, no changes needed.
* Promote "Debian Python Modules Team" as Maintainer.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
namespace Poppler {
 
2
 
 
3
class Page {
 
4
%TypeHeaderCode
 
5
#include <qt4/poppler-qt4.h>
 
6
%End
 
7
 
 
8
public:
 
9
    ~Page();
 
10
    enum Rotation {
 
11
        Rotate0 = 0,
 
12
        Rotate90 = 1,
 
13
        Rotate180 = 2,
 
14
        Rotate270 = 3,
 
15
    };
 
16
    enum PageAction {
 
17
        Opening,
 
18
        Closing,
 
19
    };
 
20
%If(POPPLER_V0_16_0 -)
 
21
    enum TextLayout {
 
22
        PhysicalLayout,
 
23
        RawOrderLayout,
 
24
    };
 
25
    enum PainterFlag {
 
26
        DontSaveAndRestore = 0x00000001,
 
27
    };
 
28
    typedef QFlags<Poppler::Page::PainterFlag> PainterFlags;
 
29
%End
 
30
    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/;
 
31
%If(POPPLER_V0_16_0 -)
 
32
    bool renderToPainter(QPainter* painter, double xres=72.0, double yres=72.0, int x=-1, int y=-1, int w=-1, int h=-1,
 
33
                         Rotation rotate = Rotate0, PainterFlags flags = 0) const /ReleaseGIL/;
 
34
%End
 
35
    QImage thumbnail() const;
 
36
%If(POPPLER_V0_16_0 -)
 
37
    QString text(const QRectF &rect, TextLayout textLayout) const;
 
38
%End
 
39
    QString text(const QRectF &rect) const;
 
40
    enum SearchDirection {
 
41
        FromTop,
 
42
        NextResult,
 
43
        PreviousResult,
 
44
    };
 
45
    enum SearchMode {
 
46
        CaseSensitive,
 
47
        CaseInsensitive,
 
48
    };
 
49
    bool search(const QString &text, QRectF &rect, SearchDirection direction, SearchMode caseSensitive, Rotation rotate = Rotate0) const /ReleaseGIL/;
 
50
%If(POPPLER_V0_14_0 -)
 
51
    bool search(const QString &text, double &rectLeft, double &rectTop, double &rectRight, double &rectBottom, SearchDirection direction, SearchMode caseSensitive, Rotation rotate = Rotate0) const /ReleaseGIL/;
 
52
%End
 
53
    QList<Poppler::TextBox*> textList(Rotation rotate = Rotate0) const;
 
54
    QSizeF pageSizeF() const;
 
55
    QSize pageSize() const;
 
56
    Poppler::PageTransition *transition() const;
 
57
    Poppler::Link *action( PageAction act ) const;
 
58
    enum Orientation {
 
59
        Landscape,
 
60
        Portrait,
 
61
        Seascape,
 
62
        UpsideDown,
 
63
    };
 
64
    Orientation orientation() const;
 
65
    void defaultCTM(double *CTM, double dpiX, double dpiY, int rotate, bool upsideDown);
 
66
    QList<Poppler::Link*> links() const;
 
67
    QList<Poppler::Annotation*> annotations() const;
 
68
    QList<Poppler::FormField*> formFields() const;
 
69
    double duration() const;
 
70
    QString label() const;
 
71
 
 
72
private:
 
73
    Page();
 
74
    Page( const Poppler::Page & );
 
75
    
 
76
}; // class Page
 
77
 
 
78
}; // namespace Poppler