Reading text and images from a pdf document in iOS

后端 未结 2 1045
刺人心
刺人心 2020-12-03 23:19

I\'m displaying locally stored pdf in my iPad application. Here\'s the code:

NSString *path = [[NSBundle mainBundle] pathForResource:@\"About Downloads\" ofT         


        
相关标签:
2条回答
  • 2020-12-03 23:58

    To get at the text in a PDF Document, I use PDF Kitten (https://github.com/KurtCode/PDFKitten). It works quite well, but as the author notes, is incomplete and does not support all font types.

    0 讨论(0)
  • 2020-12-04 00:18

    There's no simple answer to this. PDF's are nested dictionaries composed of more dictionaries & arrays. You'll have to dig into CGPDFDocument. Voyeur is an excellent tool to use while digging around in PDF's. Reader is a good suggested starting point for rendering PDF's.

    0 讨论(0)
提交回复
热议问题