Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 iOS 11 中使用 PDFKit 加载了一个 pdf 表单。我正在尝试保存可编辑字段(复选框、文本框)值。如何取回可编辑的 PDFDocument 对象以使用保存 PDF 内容
谢谢。我做了这样的事情。我添加了 Observer 并在 pdf 更改时收到通知将内容写入文件路径
PDFView *view = notification.object; PDFDocument *myDocument = view.document; NSData* content = myDocument.dataRepresentation; [content writeToFile:newPath atomically:YES];
这对我有用。