Antenna House PDF Tool API (C++) 8.0
PtlPages.h
1
2// PtlPages.h
3// Copyright (C) 2013-2018 Antenna House,Inc.
4// All rights reserved.
6#ifndef PDFTK_PTLPAGE_S_H_
7#define PDFTK_PTLPAGE_S_H_
8
9#include "PtlPage.h"
10
11namespace PdfTk {
12
13class PtlPDFDocument;
15
21
22class PDFTK_API PtlPages
23{
24public:
29 OPTION_NONE = 0x00000000,
30 OPTION_EXECPT_ANNOTS = 0x00000001,
31 OPTION_EXCEPT_FORMS = 0x00000002,
32 OPTION_COPY_OUTLINES = 0x00000004,
41 };
42
46 enum NUM_PAGES {
47 PAGE_ALL = -1,
48 };
49
55 };
56
57private:
58 int m_dataPages;
59public:
60 int getHandle() const;
61
62public:
68
75 PtlPages(const PtlPages& obj);
76
81
82public:
89
90public:
96 bool isEmpty() const;
97
103 int getCount() const;
104
105public:
115 PtlPage get(int index);
116
117public:
126 void append(PtlPage& page, int param);
127
139 void append(const PtlPDFDocument& doc, int fromNum, int numPages, int param);
140
150 void append(const PtlParamImagePage& paramImagePage);
151
163 void insert(int index, PtlPage& page, int param);
164
179 void insert(int index, const PtlPDFDocument& doc, int fromNum, int numPages, int param);
180
193 void insert(int index, const PtlParamImagePage& paramImagePage);
194
195public:
207 void move(int index, int fromNum, int numPages);
208
209public:
219 void remove(int index);
220
232 void remove(int index, int numPages);
233
242 void removeAll();
243};
244
245} // namespace PdfTk
246
247#endif // PDFTK_PTLPAGE_S_H_
void insert(int index, PtlPage &page, int param)
ページを挿入。
void append(PtlPage &page, int param)
ページを追加。
~PtlPages()
デストラクタ
PtlPage get(int index)
ページを取得。
void append(const PtlParamImagePage &paramImagePage)
画像ページを追加。
bool isEmpty() const
空かどうかを取得。
void insert(int index, const PtlParamImagePage &paramImagePage)
画像ページを挿入。
PtlPages(const PtlPages &obj)
コピーコンストラクタ alias copy
@ OPTION_COPY_ATTACHEDFILES
Definition PtlPages.h:36
void removeAll()
全ページを削除。
PtlPages & operator=(const PtlPages &obj)
コピーオペレータ alias copy
PtlPages()
コンストラクタ
void remove(int index, int numPages)
複数ページを削除。
void append(const PtlPDFDocument &doc, int fromNum, int numPages, int param)
ページを追加。
void remove(int index)
ページを削除。
void insert(int index, const PtlPDFDocument &doc, int fromNum, int numPages, int param)
ページを挿入。
void move(int index, int fromNum, int numPages)
ページを移動。
int getCount() const
ページ数を取得。