ios - 如果键盘处于事件状态,pdfnet 文档文本注释不会保存

标签 ios pdfnet

刚刚将 PDFNet.framework 更新到 6.2.1 当我在 PDFViewCtrl 中编辑带有文本字段的文档,然后将其保存为

    NSData *pdfData = [pdfViewCtrl.GetDoc SaveToBuf:e_linearized];

除了具有焦点的字段值外,所有字段值都会被保存。

最近(在 v6.1.0 或 smth 上)我曾经做过以下事情

    [pdfViewCtrl setTool:nil];

现在有 toolManager 而不是 tool 属性,但是当我尝试时它抛出异常“pdfViewCtrl Is Nil”

    [toolManager setTool:nil];

如何修复它以便保存所有字段,包括焦点字段?

最佳答案

你可以使用

[toolManager changeTool:[PanTool class]];

[toolManager setTool:[[PanTool alloc] initWithPDFViewCtrl:myPDFViewCtrl]];

关于ios - 如果键盘处于事件状态,pdfnet 文档文本注释不会保存,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25808735/

相关文章:

ios - 在哪里放置 View Controller 相关的枚举

ios - '初始化()' is deprecated: init() will be removed in Swift 3. Use ` 零`

ios - 在旧版 iOS 版本上快速传递属性

ios - 在 Swift 3 中处理 try 和 throws

javascript - PDFTron 自定义脚本中应该包含哪些内容?

ios - 测试 PDFTron/PDFNet - 添加 libTools.a 时找不到符号

Azure Functions,nuget 包安装失败

c# - 使用 Pdftron 在 C# 中将 Excel 转为 Pdf

ios - 如何获取 ImageView 中图像的实际高度以进行纵横比匹配

javascript - PDFTron : How to add an input field