问题描述:

I want to retrieve Following attributes from pdf file.

  • Title
  • Author
  • Subject
  • Keyword
  • Created Date
  • Modified Date
  • Application

So far i extracted created date and modified date using NSFileManager. Is there any method to get this attribute in ios.

Thanks in advance.

This is the pictue i take from my mac. These are the infromation i want to extract.

网友答案:
CGPDFDocumentRef _pdfDocRef = CGPDFDocumentCreateWithURL((__bridge CFURLRef)(fileURL));
CGPDFDictionaryRef infoDic  = CGPDFDocumentGetInfo(_pdfDocRef);

It show following data,

key = Title
key = Creator
key = Author
key = Producer
key = Trapped
key = CreationDate
key = ModDate
相关阅读:
Top