Resolution: Not A Bug
Affects Version/s: 2.0.17
Fix Version/s: None
Component/s: Text extraction
Here is my problem. I have to read pdf files and i decided to use pdfbox. I'm using the following code to read my file line by line to execute some actions on each ones :
File tempFile = "myPdfFile"
try (PDDocument document = PDDocument.load(tempFile))
PDFTextStripperByArea stripper = new PDFTextStripperByArea(); stripper.setSortByPosition(true); PDFTextStripper tStripper = new PDFTextStripper(); String pdfFileInText = tStripper.getText(document); String lines = pdfFileInText.split("
For a pdf in format version 1.7, all is working well. But sometimes, i have to work with pdf version 1.4 and at this moment there is a problem : the PDFTextStripper is unable to read the pdf and my "pdfFileInText" get this value : "\r\n\r\n" and that's all.
I didn't find any solutions on the web.