当前位置: 动力学知识库 > 问答 > 编程问答 >

pdf - Retrieve file properties in ios

问题描述:

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
分享给朋友:
您可能感兴趣的文章:
随机阅读: