简体   繁体   中英

How to extract text from PDF using PDFExtStream using Java

Text is not extracted from Sample.pdf file by using pdftextstream-2.6.3.jar

String filePath = "D:\\inbox\\temp\\Sample.pdf";
File document = new File(filePath);
StringBuffer pdfText = new StringBuffer(1024);
com.snowtide.pdf.OutputTarget tgt = new com.snowtide.pdf.OutputTarget(pdfText);
PDFTextStream stream = new PDFTextStream(document);
stream.pipe(tgt);
stream.close();

Earlier today, we released PDFxStream v3.1.2 . This is a bugfix release that includes a fix for the issue you encountered here.

In the future, please do get in touch with us directly if you have any difficulties, at help@snowtide.com; we do everything we can to support our customers and users.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM