How to search text in pdf document with quartz

前端 未结 4 1267
清酒与你
清酒与你 2021-02-03 16:01

I\'m using quartz to display pdf. I need to get the indexes of pages where my searching text exists. Anyone can help me? Thanks.

Solution: There is a sa

4条回答
  •  余生分开走
    2021-02-03 16:44

    There's nothing to do this inside of Quartz. Quartz is for graphics display - it doesn't need to know, or care about, searching a PDF for string matches. You will have to use the Core Graphics PDF parsing methods to pull out the data, search for the string yourself, and then get the page it occurs on.

提交回复
热议问题