Foxit PDF SDK
foxit::ofd::OFDPermission类 参考
类 foxit::ofd::OFDPermission 继承关系图:
foxit::Base

Public 成员函数

 OFDPermission (const OFDPermission &other)
 构造函数,通过另一个OFD权限对象。 更多...
 
 ~OFDPermission ()
 析构函数。
 
void EnableAllowAnnot (bool allow_annot)
 设置是否允许使用注释。 更多...
 
void EnableAllowPrintScreen (bool allow_print_screen)
 设置是否允许打印到屏幕。 更多...
 
void EnableAllowSignature (bool allow_signature)
 设置是否允许签名或签章。 更多...
 
void EnableAllowWatermark (bool allow_watermark)
 设置是否允许使用水印。 更多...
 
void EnableEditable (bool editable)
 设置是否允许编辑。 更多...
 
void EnableExportable (bool exportable)
 设置是否允许导出。 更多...
 
void EnablePrintable (bool printable)
 设置是否允许打印。 更多...
 
foxit::DateTime GetExpirationDate () const
 获取有效期截止时间。 更多...
 
int GetPrintCopies () const
 获取允许打印的份数。 更多...
 
foxit::DateTime GetStartDate () const
 获取有效期开始时间。 更多...
 
bool IsAllowAnnot () const
 是否允许使用注释。 更多...
 
bool IsAllowPrintScreen () const
 是否允许打印到屏幕。 更多...
 
bool IsAllowSignature () const
 是否允许使用签名或签章。 更多...
 
bool IsAllowWatermark () const
 是否允许使用水印。 更多...
 
bool IsEditable () const
 是否允许编辑。 更多...
 
bool IsEmpty () const
 检查当前对象是否为空。 更多...
 
bool IsExportable () const
 是否允许导出。 更多...
 
bool IsPrintable () const
 是否允许打印。 更多...
 
bool operator != (const OFDPermission &other) const
 不相等操作符。 更多...
 
OFDPermissionoperator= (const OFDPermission &other)
 赋值操作符。 更多...
 
bool operator== (const OFDPermission &other) const
 相等操作符。 更多...
 
void SetExpirationDate (const foxit::DateTime &expiration_date)
 设置有效期结束日期。 更多...
 
void SetPrintCopies (int print_copies)
 设置允许打印份数。 更多...
 
void SetStartDate (const foxit::DateTime &start_date)
 设置有效期开始时间。 更多...
 
- Public 成员函数 继承自 foxit::Base
FS_HANDLE Handle () const
 获取当前对象的句柄。 更多...
 

详细描述

此类表示和OFD权限相关的操作。

构造及析构函数说明

◆ OFDPermission()

foxit::ofd::OFDPermission::OFDPermission ( const OFDPermission other)

构造函数,通过另一个OFD权限对象。

参数
[in]other另一个OFD权限对象。

成员函数说明

◆ EnableAllowAnnot()

void foxit::ofd::OFDPermission::EnableAllowAnnot ( bool  allow_annot)

设置是否允许使用注释。

参数
[in]allow_annot是否允许使用注释。
返回
无。

◆ EnableAllowPrintScreen()

void foxit::ofd::OFDPermission::EnableAllowPrintScreen ( bool  allow_print_screen)

设置是否允许打印到屏幕。

参数
[in]allow_print_screen是否允许打印到屏幕。
返回
无。

◆ EnableAllowSignature()

void foxit::ofd::OFDPermission::EnableAllowSignature ( bool  allow_signature)

设置是否允许签名或签章。

参数
[in]allow_signature是否允许签名或签章。
返回
无。

◆ EnableAllowWatermark()

void foxit::ofd::OFDPermission::EnableAllowWatermark ( bool  allow_watermark)

设置是否允许使用水印。

参数
[in]allow_watermark是否允许使用水印。
返回
无。

◆ EnableEditable()

void foxit::ofd::OFDPermission::EnableEditable ( bool  editable)

设置是否允许编辑。

参数
[in]editable是否允许编辑。
返回
无。

◆ EnableExportable()

void foxit::ofd::OFDPermission::EnableExportable ( bool  exportable)

设置是否允许导出。

参数
[in]exportable是否允许导出。
返回
无。

◆ EnablePrintable()

void foxit::ofd::OFDPermission::EnablePrintable ( bool  printable)

设置是否允许打印。

参数
[in]printable是否允许打印。
返回
无。

◆ GetExpirationDate()

foxit::DateTime foxit::ofd::OFDPermission::GetExpirationDate ( ) const

获取有效期截止时间。

返回
截止时间。

◆ GetPrintCopies()

int foxit::ofd::OFDPermission::GetPrintCopies ( ) const

获取允许打印的份数。

返回
打印份数。

◆ GetStartDate()

foxit::DateTime foxit::ofd::OFDPermission::GetStartDate ( ) const

获取有效期开始时间。

返回
起始时间。

◆ IsAllowAnnot()

bool foxit::ofd::OFDPermission::IsAllowAnnot ( ) const

是否允许使用注释。

返回
<true> 表示允许使用注释,false 表示不允许使用注释。

◆ IsAllowPrintScreen()

bool foxit::ofd::OFDPermission::IsAllowPrintScreen ( ) const

是否允许打印到屏幕。

返回
<true> 表示允许打印到屏幕,false 表示不允许打印到屏幕。

◆ IsAllowSignature()

bool foxit::ofd::OFDPermission::IsAllowSignature ( ) const

是否允许使用签名或签章。

返回
<true> 表示允许使用签名或签章,false 表示不允许使用签名或签章。

◆ IsAllowWatermark()

bool foxit::ofd::OFDPermission::IsAllowWatermark ( ) const

是否允许使用水印。

返回
<true> 表示允许使用水印,false 表示不允许使用水印。

◆ IsEditable()

bool foxit::ofd::OFDPermission::IsEditable ( ) const

是否允许编辑。

返回
<true> 表示允许编辑,false 表示不允许编辑。

◆ IsEmpty()

bool foxit::ofd::OFDPermission::IsEmpty ( ) const

检查当前对象是否为空。

当前对象为空时,表示当前对象是无用的。

返回
true 表示当前对象为空,false 表示不为空。

◆ IsExportable()

bool foxit::ofd::OFDPermission::IsExportable ( ) const

是否允许导出。

返回
<true> 表示允许导出,false 表示不允许导出。

◆ IsPrintable()

bool foxit::ofd::OFDPermission::IsPrintable ( ) const

是否允许打印。

返回
<true> 表示允许打印,false 表示不允许打印。

◆ operator !=()

bool foxit::ofd::OFDPermission::operator != ( const OFDPermission other) const

不相等操作符。

参数
[in]other另一个OFD权限对象。此函数将检查当前对象是否不等于这个对象。
返回
true 表示不相等,false 表示相等。

◆ operator=()

OFDPermission& foxit::ofd::OFDPermission::operator= ( const OFDPermission other)

赋值操作符。

参数
[in]other另一个OFD权限对象,其值将被赋给当前对象。
返回
当前对象自身的引用。

◆ operator==()

bool foxit::ofd::OFDPermission::operator== ( const OFDPermission other) const

相等操作符。

参数
[in]other另一个OFD权限对象。此函数将检查当前对象是否等于这个对象。
返回
true 表示相等,false 表示不相等。

◆ SetExpirationDate()

void foxit::ofd::OFDPermission::SetExpirationDate ( const foxit::DateTime expiration_date)

设置有效期结束日期。

参数
[in]expiration_date结束日期。
返回
无。

◆ SetPrintCopies()

void foxit::ofd::OFDPermission::SetPrintCopies ( int  print_copies)

设置允许打印份数。

参数
[in]print_copies打印份数。
返回
无。

◆ SetStartDate()

void foxit::ofd::OFDPermission::SetStartDate ( const foxit::DateTime start_date)

设置有效期开始时间。

参数
[in]start_date开始日期。
返回
无。