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

« back to all changes in this revision

Viewing changes to poppler-document.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 Document {
 
4
%TypeHeaderCode
 
5
#include <qt4/poppler-qt4.h>
 
6
%End
 
7
 
 
8
public:
 
9
%If(POPPLER_V0_22_0 -)
 
10
    enum FormType {
 
11
        NoForm,
 
12
        AcroForm,
 
13
        XfaForm,
 
14
    };
 
15
%End
 
16
    enum PageMode {
 
17
        UseNone,
 
18
        UseOutlines,
 
19
        UseThumbs,
 
20
        FullScreen,
 
21
        UseOC,
 
22
        UseAttach,
 
23
    };
 
24
    enum PageLayout {
 
25
        NoLayout,
 
26
        SinglePage,
 
27
        OneColumn,
 
28
        TwoColumnLeft,
 
29
        TwoColumnRight,
 
30
        TwoPageLeft,
 
31
        TwoPageRight,
 
32
    };
 
33
    enum RenderBackend {
 
34
        SplashBackend,
 
35
        ArthurBackend,
 
36
    };
 
37
    enum RenderHint {
 
38
        Antialiasing = 0x00000001,
 
39
        TextAntialiasing = 0x00000002,
 
40
%If(POPPLER_V0_12_1 -)
 
41
        TextHinting = 0x00000004,
 
42
%End
 
43
%If(POPPLER_V0_18_0 -)
 
44
        TextSlightHinting = 0x00000008,
 
45
%End
 
46
%If(POPPLER_V0_22_0 -)
 
47
        OverprintPreview = 0x00000010,
 
48
%End
 
49
%If(POPPLER_V0_24_0 -)
 
50
        ThinLineSolid = 0x00000020,
 
51
        ThinLineShape = 0x00000040,
 
52
%End
 
53
    };
 
54
    typedef QFlags<Poppler::Document::RenderHint> RenderHints;
 
55
    
 
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/;
 
68
    int numPages() const;
 
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;
 
89
%End
 
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;
 
94
%End
 
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;
 
114
private:
 
115
    Document();
 
116
    Document(const Poppler::Document &);
 
117
        
 
118
}; // class Document
 
119
 
 
120
}; // namespace Poppler