开发者

Get a list of chapters of pdf document in Objective C?

开发者 https://www.devze.com 2023-03-13 07:46 出处:网络
I need to get a list of chapters of pdf document programmatically开发者_如何学运维 in Objective C. I\'ve googled, someone said that CGPDFDocumentGetCatalog may helpful but I don\'t know how to use it.

I need to get a list of chapters of pdf document programmatically开发者_如何学运维 in Objective C. I've googled, someone said that CGPDFDocumentGetCatalog may helpful but I don't know how to use it.


Use the PDFDocument class in the PDFKit Framework, something like this:

PDFDocument* pdfDoc = [[PDFDocument alloc] initWithURL:... ];
PDFOutline* pdfOutline = [pdfDoc outlineRoot];
0

精彩评论

暂无评论...
验证码 换一张
取 消