如何从目标c中的pdf文件中获取图像位置?

时间:2022-12-05 19:30:39

I am doing something like extracting the pdf text in a string format so as to annotate the text and in the same process i need to find the image positions covered in the same pdf file so as to maintain its position. Now the problem is that i am not getting the exact positions of the images in the same pdf file. Is it possible to use some thing like OCR,if yes,how to use that?

我正在做一些事情,比如以字符串格式提取pdf文本以便注释文本,并且在同一过程中我需要找到同一pdf文件中所覆盖的图像位置,以便保持其位置。现在的问题是我没有在同一个pdf文件中获得图像的确切位置。是否可以使用像OCR这样的东西,如果是的话,如何使用它?

Can anybody help me in finding the exact position of the image in the pdf file? I need to implement some pdf reader kind of application for ipad,that's just for the knowledge.

任何人都可以帮我找到pdf文件中图像的确切位置吗?我需要为ipad实现一些pdf阅读器类应用程序,这只是为了知识。

Thank you.

谢谢。

1 个解决方案

#1


0  

Isn't OCR a little bit heavy weight for iphone? Take look on tools like pdftotext from Xpdf. It is much simpler to read data, as to render and recognize it back again.

对于iPhone,OCR不是有点重吗?查看来自Xpdf的pdftotext等工具。读取数据要简单得多,以便再次渲染和识别它。

#1


0  

Isn't OCR a little bit heavy weight for iphone? Take look on tools like pdftotext from Xpdf. It is much simpler to read data, as to render and recognize it back again.

对于iPhone,OCR不是有点重吗?查看来自Xpdf的pdftotext等工具。读取数据要简单得多,以便再次渲染和识别它。