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

构造函数

(FSResultInformation *) - convertPDFFile:saved_pdf_path:convert_to_version:progress_callback:
 使用指定的PDF/E版本转换PDF文件。
更多...
 
(id) - init
 构造函数。

 
(id) - initWithOther:
 带另一个PDF/E合规性对象的构造函数。
更多...
 
(BOOL) - isEmpty
 检查当前对象是否为空。
更多...
 
(FSResultInformation *) - verify:first_page_index:last_page_index:verify_version:progress_callback:
 使用指定的PDF/E版本验证PDF文件。
更多...
 

详细描述

此类可用于PDF/E合规性验证或将PDF文件转换为PDF/E格式。 请确保FSComplianceEngine 已成功初始化。

参见
FSComplianceEngine

函数文档

◆ convertPDFFile:saved_pdf_path:convert_to_version:progress_callback:()

- (FSResultInformation *) convertPDFFile: (NSString *)  src_pdf_path
saved_pdf_path: (NSString *)  saved_pdf_path
convert_to_version: (FSPDFEComplianceVersion convert_to_version
progress_callback: (id<FSComplianceProgressCallback>)  progress_callback 

使用指定的PDF/E版本转换PDF文件。

参数
[in]src_pdf_path要转换的源PDF文件的完整路径。这不应该是空字符串。
[in]saved_pdf_path保存转换后PDF文件的完整路径。这不应该是空字符串。
[in]convert_to_version要转换的PDF/E版本。请参考从FSPDFEComplianceVersionPDFE1开始的值, 这应该是这些值之一。 默认值:FSPDFEComplianceVersionPDFE1
[in]progress_callback由用户实现的进度回调,可用于获取进度数据。 这可以是nil。默认值:nil
返回
FSResultInformation 对象。

◆ initWithOther:()

- (id) initWithOther: (FSPDFECompliance*)  other

带另一个PDF/E合规性对象的构造函数。

参数
[in]other另一个PDF/E合规性对象。

◆ isEmpty()

- (BOOL) isEmpty

检查当前对象是否为空。

当前对象为空时,意味着当前对象无用。

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

◆ verify:first_page_index:last_page_index:verify_version:progress_callback:()

- (FSResultInformation *) verify: (NSString *)  src_pdf_path
first_page_index: (int)  first_page_index
last_page_index: (int)  last_page_index
verify_version: (FSPDFEComplianceVersion verify_version
progress_callback: (id<FSComplianceProgressCallback>)  progress_callback 

使用指定的PDF/E版本验证PDF文件。

参数
[in]src_pdf_path要验证的源PDF文件的完整路径。这不应该是空字符串。
[in]first_page_index要验证的第一页的索引,从0开始。默认值:0。
[in]last_page_index要验证的最后一页的索引。如果这是-1,那意味着 源PDF文件的所有页面都将被验证(忽略first_page_index)。 默认值:-1。
[in]verify_version要验证的PDF/E版本。
[in]progress_callback由用户实现的进度回调,可用于获取进度数据。 这可以是nil。默认值:nil
返回
FSResultInformation 对象。