PDF 生成模板编辑器
开源可视化 PDF 生成引擎,支持自定义模板,并提供面向开发者的 API,灵活构建文档生成流程。
用户可以通过拖动鼠标或手指来选择 PDF 文档中的文本,并实时获取选中的内容。
以下是提取选中内容的示例代码:
// 提取选中的文字
let currentSelection = pdfview.currentSelection
let currentText = currentSelection?.string()// 提取选中的文字
CPDFSelection *currentSelection = pdfView.currentSelection;
NSString *currentText = [currentSelection string];