cgpdfscanner

iOS How to get all words coordinates in PDF page

随声附和 提交于 2019-12-11 20:59:18
问题 I have looked through many tutorials and usually stack users trow links to the pdfkitten, but as I've tested it I have not satisfied with result. So the search does not work with multiply word and etc. So what I am looking for I need to get all words from the pdf page and highlight it if the words cross some rectangle. 回答1: I used PDFKitten for the same. What I did was while scanning the PDF - Identify the words separated by spaces. Save the RenderingState(Model in PDFKitten code)word is