日期:2014-05-18  浏览次数:20976 次

c# 读取pdf中的表格数据
如果pdf里面有表格数据的话,想把它读出来,要如何做,最好给个例子。或是个什么开源插件。

------解决方案--------------------
可用itextsharp,pdfbox
string pdfPath = Server.MapPath("a.pdf");
PDDocument doc = PDDocument.load(pdfPath);
PDFTextStripper stripper = new PDFTextStripper();
string txt = stripper.getText(doc);
Response.Write(txt);

http://topic.csdn.net/u/20070607/11/b6ae0d30-3d2d-4024-9057-19583b1ac8b3.html
------解决方案--------------------
ITextSharp是开源的,从IText移植来的,很不错。
------解决方案--------------------
ITextSharp讨论
iTextSharp 使用详解
另外iTextSharp有中文教程来着,你搜一下,CSDN上有下载。。。不过资源分竟然要10分。我没好意思贴上来。。
------解决方案--------------------
当然可以
你去看一下ITextSharp 这个组件的用法

------解决方案--------------------
Lucene.Net.dll 这个也可以