You might find it as duplicate of Create a table of contents from a pdf file, but I didn't get any solution there. My scenario is like I am creating a PDF from existing PDF with some edits. That all works fine. My question is I want to add metadata, table of contents, bookmarks, what ever you call that is in metadata of PDF to the newly created PDF. I am not able to understand XMP format as suggested in How to add the metadata to a pdf in Objective C?. Is there any way I can directly add TOC to new PDF?
I am using following function but it is not working at all.
CGPDFContextAddDocumentMetadata(pdfContext, contdata);
Can anyone suggest me the direction to dig in? Any 3rd party tool will also do. I tried podofo but I'm not getting any way for porting it in iOS.