[英]Read data from pdf file using php
I read pdf file using the code in this link http://webcheatsheet.com/php/reading_clean_text_from_pdf.php .My pdf file contain a table structure, but after reading the file all data messed up like xxx 333 Exited from Country 26-01-2014 yyy 444 Entered to Country 26-01-2014 zzz 555 Exited from Country 26-01-2014 我使用此链接http://webcheatsheet.com/php/reading_clean_text_from_pdf.php中的代码阅读pdf文件。我的pdf文件包含表格结构,但在读取文件后,所有数据都混乱了,例如xxx 333从国家26-01退出-2014 yyy 444进入国家26-01-2014 zzz 555退出国家26-01-2014
My pdf structure is 我的pdf结构是
visaNo Name date Type 签证编号名称日期类型
333 xxx 26-01-2014 Existed from country 333 xxx 26-01-2014来自国家/地区
444 yyy 26-01-2014 Entered to country 444 yyy 26-01-2014进入国家
555 zzz 26-01-2014 Existed from country 555 zzz 26-01-2014来自国家/地区
I'm afraid there's no easy fix for this. 恐怕没有简单的解决办法。 In the pdf source code the order in which you write down the bits of text is not important, since you can give all of them specific cohordinates.
在pdf源代码中,写下文本位的顺序并不重要,因为您可以给它们全部指定特定的坐标。 The two things you can do are (imho):
您可以做的两件事是(imho):
I really hope for you there is some php class doing this 我真的希望你有一些php类这样做
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.