Foxit PDF SDK
fs_redaction.h
浏览该文件的文档.
1
15
#ifndef FS_REDACTION_H_
16
#define FS_REDACTION_H_
17
18
#include "
common/fs_common.h
"
19
#include "
pdf/fs_pdfdoc.h
"
20
#include "
pdf/fs_pdfpage.h
"
21
#include "
pdf/annots/fs_annot.h
"
22
28
namespace
foxit
{
32
namespace
addon {
37
class
ApplyRedactionCallback
{
38
public
:
44
virtual
void
Release
() = 0;
45
51
virtual
bool
NeedToGenerateStreamFile
() = 0;
52
};
53
62
class
Redaction
FS_FINAL :
public
Base
{
63
public
:
73
explicit
Redaction
(
const
pdf::PDFDoc
& document);
74
80
Redaction
(
const
Redaction
& other);
81
82
// 强烈建议用户不要使用此方法;否则可能会出现未知情况。
83
explicit
Redaction
(
FS_HANDLE
handle);
85
~Redaction
();
86
94
Redaction
&
operator =
(
const
Redaction
& other);
102
bool
operator ==
(
const
Redaction
& other)
const
;
110
bool
operator !=
(
const
Redaction
& other)
const
;
111
119
bool
IsEmpty
()
const
;
120
148
pdf::annots::Redact
MarkRedactAnnot
(
const
pdf::PDFPage
& page,
const
RectFArray
& rects);
149
162
void
EnableFileStream
(
const
WString
& temp_directory_path,
ApplyRedactionCallback
* apply_redaction_callback);
163
174
bool
Apply
();
175
191
common::Progressive
StartApply
(
common::PauseCallback
* pause =
NULL
);
192
};
193
}
// namespace addon
194
}
// namespace foxit
195
196
#endif // FS_REDACTION_H_
197
foxit::addon::Redaction
Definition:
fs_redaction.h:62
foxit::FS_HANDLE
void * FS_HANDLE
句柄类型。
Definition:
fs_basictypes.h:214
foxit::addon::ApplyRedactionCallback::NeedToGenerateStreamFile
virtual bool NeedToGenerateStreamFile()=0
用于检查是否生成流文件的回调函数。
foxit::addon::Redaction::operator!=
bool operator!=(const Redaction &other) const
不相等操作符。
foxit::addon::ApplyRedactionCallback::Release
virtual void Release()=0
用于释放当前回调对象本身的回调函数。
foxit::common::Progressive
Definition:
fs_common.h:373
foxit::addon::Redaction::StartApply
common::Progressive StartApply(common::PauseCallback *pause=0)
开始在标记区域应用保护密文:永久删除标记区域下的文本或图形。
foxit::addon::Redaction::operator==
bool operator==(const Redaction &other) const
相等操作符。
fs_common.h
通用定义和类的头文件。
CFX_ArrayTemplate< RectF >
foxit::addon::Redaction::IsEmpty
bool IsEmpty() const
检查当前对象是否为空。
foxit::addon::Redaction::Redaction
Redaction(const pdf::PDFDoc &document)
构造函数,从 PDF 文档对象构造。
foxit::pdf::annots::Redact
Definition:
fs_annot.h:5593
foxit::addon::Redaction::MarkRedactAnnot
pdf::annots::Redact MarkRedactAnnot(const pdf::PDFPage &page, const RectFArray &rects)
标记要进行保护密文处理的页面内容(文本对象、图像对象和路径对象)。
fs_pdfpage.h
PDF页面相关定义和类的头文件。
foxit
Foxit命名空间。
Definition:
fs_taggedpdf.h:27
foxit::addon::Redaction::EnableFileStream
void EnableFileStream(const WString &temp_directory_path, ApplyRedactionCallback *apply_redaction_callback)
在应用过程中为图像对象启用文件流。
IFX_Pause
Definition:
fx_basic.h:3737
fs_pdfdoc.h
PDF文档相关定义和类的头文件。
NULL
#define NULL
空指针值。
Definition:
fx_system.h:792
foxit::pdf::PDFDoc
Definition:
fs_pdfdoc.h:771
foxit::addon::Redaction::operator=
Redaction & operator=(const Redaction &other)
赋值操作符。
foxit::pdf::PDFPage
Definition:
fs_pdfpage.h:421
foxit::addon::ApplyRedactionCallback
Definition:
fs_redaction.h:37
fs_annot.h
注释相关定义和类的头文件。
foxit::addon::Redaction::Apply
bool Apply()
在标记区域应用保护密文:永久删除标记区域下的文本或图形。
CFX_WideString
宽字符串类
Definition:
fx_string.h:1457
foxit::Base
Definition:
fs_basictypes.h:449
foxit::addon::Redaction::~Redaction
~Redaction()
析构函数。
@2026 Foxit Software Incorporated. All rights reserved.