English 中文(简体)
阅读PDF Itextsharp的表格
原标题:Reading a table in PDF Itextsharp
  • 时间:2012-04-19 15:37:27
  •  标签:
  • pdf
  • itext

我正试图用Itsharp在NET应用中读到国防军。 我能够读一下个人的话。 我现在面临的挑战是阅读一个表格。 我有这样的表格结构:

“entergraph

Please note that here some of column names are two-lined. for example Department Code and Employee Identification Number.

因此,如果雇员属于人力资源部门,我的要求是读到雇员身份识别号码和工资。 为此,我必须检查在人民国防军档案中是否存在一个名为《部门法典》的栏目。

当我用iTextsharp阅读这个表格时,我们可以说,《部门法典》一栏中有部分内容,但《法典》有5个立场。 这是因为该栏以两行显示,在我阅读该栏的法典部分之前,在pdf中还有四字。 我完全 st着:

任何人都知道如何确保存在一栏名称部门法,并从表中读到相应的数值。

赞赏你的帮助!

Regards, Jaleel

问题回答

不幸的是,人民抵抗力量实际上没有“表”的概念。 坐在桌旁的只是一nch的任意案文。 多数国防军创建图书馆使你能够从“表”中产生内容,但最终将这些内容变成文字和无关线。 而且,你认为“空白处”实际上根本不可能有文字(尽管它可能是一个空间)。

就这种事情而言,你只是想提出一些与你的文件具体有关的任意规则。 您could试图计算在案文上有线之处,并尝试以更符合逻辑的方式重建你的桌子,但你却不愿意这样做。





相关问题
How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Extract everything from PDF [closed]

Looking for solution to extract content from a PDF file (using console tool or a library). It will be used on server to produce on-line e-books from uploaded PDF files. Need to extract following ...

PDF compression How does Adobe do it?

This is a bit more of a fun question than a serious one, but how does the Adobe PDF format make documents so... portable? I just created a small Word document, 235kb in size, containing multiple ...

Exporting HTML Tables

How can I export an HTML table in my page as PDF and/or XLS? (preferably using JS (+jquery))

Using Java PDFBox library to write Russian PDF

I am using a Java library called PDFBox trying to write text to a PDF. It works perfect for English text, but when i tried to write Russian text inside the PDF the letters appeared so strange. It ...

HTML --> PDF with PHP [duplicate]

Possible Duplicate: Convert HTML + CSS to PDF with PHP? How can I convert an HTML page (via $cURL or something) to a PDF file?

Free way to convert PDF to XPS with C#

Are there any free tools that I can use to convert a PDF document into an XPS document? Although a nice programmatic API would be nice, I m not opposed to shelling out to a command line tool to do ...

PDF conversion service

I need to develop a service able to convert MS Office and Open Office documents to PDF. And the PDF`s also need to be commentable when opened in ADOBE Reader. I have used a piece of software from www....

热门标签