PDDocument doc = PDDocument.load(pdf_in); PDFTextStripper pdfstripper = new PDFTextStripper(); PDFTextStripperByArea stripperArea = new PDFTextStripperByArea(); stripperArea.setSortByPosition(true); Rectangle rect = new Rectangle(10,280,275,60); stripperArea.addRegion("class1",rect); .....
Error:The best overloaded method match for org.pdfbox.util.PDFTextStripperByArea.addRegion(string, java.awt.geom.Rectangle2D)' has some invalid arguments .
Rectangle2D
Rectangle
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)