2

Assuming I have extracted the CGPDFDictionaryRef from a PDF document using the iPhone SDK, how do I get the document's title from the dictionary? More generally, how can I get a list of the keywords for that dictionary? In theory I could ask the customer, but surely there must be some canonical keywords? Is there a list somewhere?

Update: I found this link which gives the common keys. To answer my own question, you can look these up directly in the dictionary returned by CGPDFDocumentGetInfo(pdfDocumentRef).

Amagrammer
  • 6,385
  • 3
  • 28
  • 30

1 Answers1

1

The dictionary key you're looking for is kCGPDFContextTitle.

Here's your list of keys.

Edit: I'm not sure. I haven't actually used CGPDF -- was just giving an educated guess based on how other Apple frameworks work.

Shaggy Frog
  • 27,575
  • 16
  • 91
  • 128