我需要在 Objective C 中以编程方式获取 pdf 文档的章节列表。我用谷歌搜索,有人说 CGPDFDocumentGetCatalog 可能有帮助,但我不知道如何使用它。
最佳答案
使用 PDFKit Framework 中的 PDFDocument 类,像这样:
PDFDocument* pdfDoc = [[PDFDocument alloc] initWithURL:... ];
PDFOutline* pdfOutline = [pdfDoc outlineRoot];
关于ios - 在 Objective C 中获取 pdf 文档的章节列表?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6377100/