How to find coordinate of desired text in PDF file using PHP?

被刻印的时光 ゝ 提交于 2019-12-13 12:16:05

问题


I have been looking for the way to find the coordinate of string in PDF using PHP I searched in GOOGLE and also looked into many questions in SO, but didnt find something relevant, can someone help me in finding me the solution...


回答1:


Have a look at this article,, it descripes what is needed to do and then shows you some code and a usage example. It gets the text out of a pdf file. Then you can use php strpos function to search for a string in it.

Maybe this SO question and answer can help you. It is in perl but does the job I think. Maybe you can rewrite the code for php.

  • Please mark as answer if this helped.


来源:https://stackoverflow.com/questions/5259559/how-to-find-coordinate-of-desired-text-in-pdf-file-using-php

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!