Core Data NSDocument 应用程序 - 打开 PDF,另存为捆绑包

发布于 2025-01-05 09:23:00 字数 107 浏览 2 评论 0原文

我正在开发一个应用程序,需要能够打开 PDF 文档,然后另存为包含此 PDF 和核心数据对象图的包。该应用程序还应该打开自定义捆绑包。

有关于从哪里开始的指示吗?

谢谢

I'm working on an app that needs to be able to open a PDF document and then save as a bundle containing this PDF and the core data object graph. The app should also open the custom bundle.

Any pointers on where to start?

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

倾城°AllureLove 2025-01-12 09:23:00

我想说这两个来源:

你当然可以使用 NSPersistentDocument。创建数据模型时,您可以使用数据对象和外部存储来创建根文档对象来存储 PDF。

或者,使用 NSDocument,并自己处理包加载和核心数据堆栈。

I'd say these two sources:

You certainly can use NSPersistentDocument. When you create your data model, you could create a root document object with a data object and external storage to store the PDF.

Or, use NSDocument, and handle the bundle loading and Core Data stack yourself.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文