获取PDF文档大纲

发布于 2024-09-15 10:25:45 字数 200 浏览 2 评论 0原文

我正在使用 Quartz 2D 在 iPad 上渲染 PDF,效果很好。

现在我需要一种方法来获取文档大纲(目录),我发现以下函数 CGPDFDocumentGetCatalog 似乎相关,但返回的信息是一个我不知道的不透明字典钥匙。

我想要树中的大纲以及每个条目的页码。

我对可以在 iPad 上使用的任何答案感兴趣,即使它使用其他库。

I'm using Quartz 2D to render PDF on the iPad, this works fine.

Now I need a way to get the document outline (table of content), I found the following function CGPDFDocumentGetCatalog which seems to be relevant, but the returned info is an opaque dictionary from which I don't know the keys.

I want the outline in a tree with the page number for each entry.

I'm interested in any answer I can use on the iPad, even if it use an other library.

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文