Foxit PDF SDK
FSAccessibilityFixer类 参考
类 FSAccessibilityFixer 继承关系图:
FSBase

构造函数

(BOOL) - canFixPermissionRules:is_ocr_enabled:
 检查权限相关规则是否可被修复。
更多...
 
(BOOL) - canFixRules:check_state:
 检查指定规则是否可被修复。
更多...
 
(BOOL) - fixDocumentBookmark:
 修复文档书签。
更多...
 
(BOOL) - fixDocumentLanguage:
 修复文档语言。
更多...
 
(BOOL) - fixDocumentPermission
 修复文档权限。
更多...
 
(BOOL) - fixDocumentTag
 修复文档标签。
更多...
 
(BOOL) - fixDocumentTitle:subject:author:keywords:
 修复文档标题。
更多...
 
(NSString *) - fixDocumentTitleWithExistingTitle
 使用已有标题修复文档标题。
更多...
 
(BOOL) - fixFigureAltText:
 修复图形替代文本。
更多...
 
(BOOL) - fixFormFieldDescriptions
 修复表单字段描述。
更多...
 
(BOOL) - fixFormFieldTagged
 修复表单字段标记。
更多...
 
(BOOL) - fixPageTabOrder
 修复页面 Tab 顺序。
更多...
 
(id) - initWithOther:
 构造函数,使用另一个修复器对象构造。
更多...
 
(id) - initWithPdf_doc:
 构造函数。
更多...
 
(BOOL) - isEmpty
 检查当前对象是否为空。
更多...
 

详细描述

此类表示用于 PDF 文档的可访问性修复器:查询规则是否可修复 并应用自动修复(文档语言/标题/书签/权限/标签、页面 Tab 顺序、图形替代文本、表单字段标记与描述)。 在使用此模块中的任何类或方法之前,请确保已通过 FSLibrary::initialize:key: 函数并使用包含 "Accessibility" 模块的密钥成功初始化福昕 PDF SDK。

参见
FSLibrary

函数文档

◆ canFixPermissionRules:is_ocr_enabled:()

- (BOOL) canFixPermissionRules: (FSRuleType)  check_rule
is_ocr_enabled: (BOOL)  is_ocr_enabled 

检查权限相关规则是否可被修复。

参数
[in]check_rule检查规则类型。
[in]is_ocr_enabled是否已启用 OCR。
返回
YES 表示权限相关规则可被修复,NO 表示不可以。

◆ canFixRules:check_state:()

- (BOOL) canFixRules: (FSRuleType)  check_rule
check_state: (FSCheckState)  check_state 

检查指定规则是否可被修复。

参数
[in]check_rule检查规则类型。
[in]check_state检查状态。
返回
YES 表示该规则可被修复,NO 表示不可以。

◆ fixDocumentBookmark:()

- (BOOL) fixDocumentBookmark: (NSArray<NSString *> *)  roles_array

修复文档书签。

参数
[in]roles_array角色数组。
返回
YES 表示成功,NO 表示失败。

◆ fixDocumentLanguage:()

- (BOOL) fixDocumentLanguage: (NSString *)  lang

修复文档语言。

参数
[in]lang要设置的语言。
返回
YES 表示成功,NO 表示失败。

◆ fixDocumentPermission()

- (BOOL) fixDocumentPermission

修复文档权限。

返回
YES 表示成功,NO 表示失败。

◆ fixDocumentTag()

- (BOOL) fixDocumentTag

修复文档标签。

返回
YES 表示成功,NO 表示失败。

◆ fixDocumentTitle:subject:author:keywords:()

- (BOOL) fixDocumentTitle: (NSString *)  title
subject: (NSString *)  subject
author: (NSString *)  author
keywords: (NSString *)  keywords 

修复文档标题。

参数
[in]title要设置的标题。
[in]subject要设置的主题。
[in]author要设置的作者。
[in]keywords要设置的关键字。
返回
YES 表示成功,NO 表示失败。

◆ fixDocumentTitleWithExistingTitle()

- (NSString *) fixDocumentTitleWithExistingTitle

使用已有标题修复文档标题。

返回
已有的标题文本。

◆ fixFigureAltText:()

- (BOOL) fixFigureAltText: (FSAccessibilityCheckResultDetailDataArray*)  detail_data_array

修复图形替代文本。

参数
[in]detail_data_array检查结果详情数据数组。
返回
YES 表示成功,NO 表示失败。

◆ fixFormFieldDescriptions()

- (BOOL) fixFormFieldDescriptions

修复表单字段描述。

返回
YES 表示成功,NO 表示失败。

◆ fixFormFieldTagged()

- (BOOL) fixFormFieldTagged

修复表单字段标记。

返回
YES 表示成功,NO 表示失败。

◆ fixPageTabOrder()

- (BOOL) fixPageTabOrder

修复页面 Tab 顺序。

返回
YES 表示成功,NO 表示失败。

◆ initWithOther:()

- (id) initWithOther: (FSAccessibilityFixer*)  other

构造函数,使用另一个修复器对象构造。

参数
[in]other另一个修复器对象。

◆ initWithPdf_doc:()

- (id) initWithPdf_doc: (FSPDFDoc*)  pdf_doc

构造函数。

参数
[in]pdf_doc有效的 PDF 文档对象。

◆ isEmpty()

- (BOOL) isEmpty

检查当前对象是否为空。

当前对象为空时,表示当前对象不可用。

返回
YES 表示当前对象为空,NO 表示不为空。