Which are the pdf operators needed to do a search feature in a PDF in iphone sdk?

前端 未结 3 642
一向
一向 2020-12-05 12:24

I have a been trying to do a search feature in a PDF application. I read the Quartz 2d guide in iphone reference library. And so much has been said about the \"pdf operators

3条回答
  •  不思量自难忘°
    2020-12-05 13:13

    Don't be scared off by the PDF reference. Its very well laid out and you really only need to read a few chapters to understand how text is handled. You can download it from Adobe:

    Enrique is correct in that TJ and Tj are the operators that show text, but it is entirely possible, and even normal, for words and sentences to be split up across multiple operations. You should probably concentrate on text blocks, marked by BT and ET (begin text / end text) in the PDF Stream Object.

    PDFBox from the Apache Project is a very full featured library for working with PDF documents, have a look there.

提交回复
热议问题