itextsharp从pdf文件提取text(处理文字的位置信息)
Document document = new Document();PdfReader reader = new PdfReader("input.pdf");PdfReaderContentParser parser = new PdfReaderContentParser(reader);textBox1.Text = parser.ProcessContent(1, new LocationTextExtractionStrategy() ).GetResultantText();
复制链接