PDF 生成模板编辑器
开源可视化 PDF 生成引擎,支持自定义模板,并提供面向开发者的 API,灵活构建文档生成流程。
如果安装原生依赖时从默认下载地址获取 ComPDF SDK 失败,可在 Flutter 工程的 ios/Podfile 中,将原生依赖改为 Git 来源。保留原有 Flutter 初始化、构建配置和安装后处理,仅在 Runner 目标中配置依赖:
target 'Runner' do
use_frameworks!
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
pod 'ComPDFKit', :git => 'https://github.com/ComPDFKit/compdfkit-pdf-sdk-ios-swift.git', :tag => '3.2.0'
pod 'ComPDFKit_Tools', :git => 'https://github.com/ComPDFKit/compdfkit-pdf-sdk-ios-swift.git', :tag => '3.2.0'
end同一原生库仅保留一处来源配置,再在 ios 目录重新安装依赖。完整集成配置见创建新项目。