I have implemented the ODF reader application for IFF.Now I want to get the list of audio URLs and video URLs from PDF I am I do not know how this is possible. Please help me for this question.
OK, then your CGPDFDocumentRef pointing to a valid PDF document You can iterate over all the available pages of the document by using the CGPDFDocumentGetNumberOfPages and CGPDFDocumentGetPage functions. The result of CGPDFDocumentGetPage function is CGPDFPageRef reference. Within the CGPDFPage API and CGPDFDocument API, you will find the CGPDFPageGetDictionary function that gives you the CGPDFDictionaryRef reference. It depends on how your PDF is ready, but in one of those dictionaries there are stored information that you need. You can pass a function pointer to callback with this signature, callback the CGPDFDictionaryApplyFunction function with this signature:
Zero application function ( Const char * key, CGPDFObjectRef object, zero * info); Callback is called for each key / value pair of a specific dictionary What should you find within any of the CGPDFObjectRef references?
Simultaneously take a look at the documentation of CGPDF document , CGPDFPage and CGPDFDictionary .
Comments
Post a Comment