views:

39

answers:

1

Hi all!

How can I change the metadata of a PDF using Quartz 2d on iPhone? That's the way I get the CGPDFDictionaryRef:

CFDataRef pdfDataRef = (CFDataRef)pdfData;
CGDataProviderRef providerPDF = CGDataProviderCreateWithCFData(pdfDataRef);
CGPDFDocumentRef pdfDocumentRef = CGPDFDocumentCreateWithProvider(providerPDF); 
CGPDFPageRef pageRef = CGPDFDocumentGetPage(pdfDocumentRef, 1);
CGPDFDictionaryRef dictionaryRef = CGPDFPageGetDictionary(pageRef);

Now, how can I get all the page information from that CGPDFDictionaryRef, for example the Fonts. I'd like to access the font objects and change the font-name? How can I manage that?

A: 

it seems impossible

Joe Yang