Click here to Skip to main content
15,616,163 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
PDDocument doc = PDDocument.load(pdf_in);
                PDFTextStripper pdfstripper = new PDFTextStripper();
PDFTextStripperByArea stripperArea = new PDFTextStripperByArea();
                Rectangle rect = new Rectangle(10,280,275,60);

I have a problem :
Error:The best overloaded method match for   org.pdfbox.util.PDFTextStripperByArea.addRegion(string, java.awt.geom.Rectangle2D)' has some invalid arguments .

Please help me.
Updated 2-Dec-11 4:47am

1 solution

The error say it all, just create a Rectangle2D object instead of Rectangle.
Share this answer
CuongPuyol 3-Dec-11 11:46am    
thank Mehdi Gholam very much.I want to extract area text of a pdf file.How can I do ?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900