// Initialize a CPDFDocument object with the path to the PDF file
let document: CPDFDocument? = CPDFDocument.init(url: filePath)
// Initialize a CPDFView object with the size of the entire screen
let pdfView: CPDFView? = CPDFView.init(frame: self.view.bounds)
pdfView?.document = document
iOS PDF 转换库
使用 ComPDFKit AI 驱动的 PDF 转换库,支持将 PDF 文件与各种格式进行转换。支持包括 Word、Excel、PPT、PNG、JPG、TXT、RTF、CSV、HTML。保留原始文件的布局和质量。
PDF 编辑 SDK
通过强大的 ComPDFKit Objective-C、Swift 和 C/C++ 库,增强您的 iOS 应用,实现无缝的 PDF 页面组织和编辑。允许添加、删除、合并、拆分、替换、旋转、翻转、倒序、重排页面等功能。
iOS PDF 安全 SDK
使用权限、编辑、加水印保护文档,并使用高级加密标准 (AES) 128 或 256 加密文件。将 ComPDFKit SDK 集成到您的 iOS 应用中,保护文件数据。