Quantcast
Channel: Aspose.Pdf Product Family
Viewing all articles
Browse latest Browse all 3131

How to Extract Text from an particular rectangle region??

$
0
0
Here is my code

com.aspose.pdf.Document pdfDocument = new com.aspose.pdf.Document("/home/parkavi/Pdffiles/pages/page_0001.pdf");
//Create rectangle object to get fields in that area
com.aspose.pdf.Rectangle rectangle = new com.aspose.pdf.Rectangle(372, 325, 193, 9);
//Get the PDF form
com.aspose.pdf.Form form = pdfDocument.getForm();
//get fields in the rectangular area
com.aspose.pdf.Field[] fields = form.getFieldsInRect(rectangle);

How to iterate field value??

This is the correct way or any other solution is there??????

Viewing all articles
Browse latest Browse all 3131

Trending Articles