Foxit PDF SDK
fs_ofddoc.h
浏览该文件的文档.
1
#if (defined(_WIN32) || defined(_WIN64))|| defined(__linux__)
2
16
#ifndef FS_OFDDOC_H_
17
#define FS_OFDDOC_H_
18
19
#include "
common/fs_common.h
"
20
#include "
common/fs_image.h
"
21
#include "
fs_ofdpage.h
"
22
28
namespace
foxit
{
32
namespace
addon {
36
namespace
ofd {
43
class
OFDDoc
FS_FINAL :
public
Base
{
44
public
:
48
OFDDoc
();
49
57
OFDDoc
(
const
wchar_t
* path,
const
wchar_t
* password);
58
64
OFDDoc
(
const
OFDDoc
& other);
65
74
void
Release
();
75
83
OFDDoc
&
operator=
(
const
OFDDoc
& other);
84
92
bool
operator==
(
const
OFDDoc
& other)
const
;
93
101
bool
operator!=
(
const
OFDDoc
& other)
const
;
102
110
bool
IsEmpty
()
const
;
111
117
int
GetPageCount
()
const
;
118
127
OFDPage
GetPage
(
int
index)
const
;
128
// 强烈建议用户不要使用此方法;否则可能出现未知情况。
129
explicit
OFDDoc
(
FS_HANDLE
handle);
130
};
131
132
}
//namespace ofd
133
}
//namespace addon
134
}
//namespace foxit
135
#endif // FS_OFDDOC_H_
136
#endif // (defined(_WIN32) || defined(_WIN64)) || (defined(__linux__) && defined(__x86_64__) && !defined(__ANDROID__))
fs_ofdpage.h
OFD页面相关类和方法的头文件。
foxit::addon::ofd::OFDDoc::OFDDoc
OFDDoc()
构造函数。
foxit::addon::ofd::OFDDoc::GetPageCount
int GetPageCount() const
获取当前OFD文档的页面数。
foxit::addon::ofd::OFDPage
Definition:
fs_ofdpage.h:41
foxit::addon::ofd::OFDDoc::GetPage
OFDPage GetPage(int index) const
按索引获取OFD页面对象。
foxit::addon::ofd::OFDDoc::operator=
OFDDoc & operator=(const OFDDoc &other)
赋值操作符。
foxit::addon::ofd::OFDDoc::Release
void Release()
释放当前OFD文档对象。
foxit::addon::ofd::OFDDoc
Definition:
fs_ofddoc.h:43
foxit::addon::ofd::OFDDoc::operator==
bool operator==(const OFDDoc &other) const
等于操作符。
fs_image.h
图像和位图相关定义和类的头文件。
foxit::addon::ofd::OFDDoc::operator!=
bool operator!=(const OFDDoc &other) const
不等于操作符。
foxit::FS_HANDLE
void * FS_HANDLE
句柄类型。
Definition:
fs_basictypes.h:214
fs_common.h
通用定义和类的头文件。
foxit::Base
Definition:
fs_basictypes.h:449
foxit::addon::ofd::OFDDoc::IsEmpty
bool IsEmpty() const
检查当前对象是否为空。
foxit
Foxit命名空间。
Definition:
fs_taggedpdf.h:27
@2026 Foxit Software Incorporated. All rights reserved.