Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Thu Jun 28, 2018 11:34 am

Hi E-Iceblue Team,

I found the possibilty in your documentation to extract text from an defined rectangle.

Cool, we need this.

But I have no idea how to get the positions of my needed rectangles in a form.

Do you have any idea how to "draw" a rectangle by mouse as developer and get the position to implement in my code?

In the next time we buy the "full version" of Spire.PDF - great tool!

Thank you.

Regards,

Jan

Jan.Brandenburger
 
Posts: 5
Joined: Tue Jun 26, 2018 5:52 am

Fri Jun 29, 2018 7:40 am

Hello Jan,

Thank you for your inquiry.
Spire.PDF could meet your requirement well. To do that, you need to convert the pdf into an image first and display the image on the form. Then draw rectangles on top of the image and calling ExtractText according to the coordinate of the rectangle.
I have made a sample demo for you. If there's any doubt, just get it back to us.
https://www.e-iceblue.com/downloads/attachment/ExtractTextByRectangle.zip

Sincerely,
Jane
E-iceblue support team
User avatar

Jane.Bai
 
Posts: 1156
Joined: Tue Nov 29, 2016 1:47 am

Tue Jul 03, 2018 2:55 am

Hello Jan,

Greetings from e-iceblue support team.
Have you tried the solution?
Your feedback would be greatly appreciated.

Sincerely,
Jane
E-iceblue support team
User avatar

Jane.Bai
 
Posts: 1156
Joined: Tue Nov 29, 2016 1:47 am

Fri Jul 06, 2018 5:36 pm

Thank you very much for the solution.

I will test it next week.

Regards,
Jan

Jan.Brandenburger
 
Posts: 5
Joined: Tue Jun 26, 2018 5:52 am

Mon Jul 09, 2018 2:43 am

Hello Jan,

Thank you for your response.
Will look forward to your feedback.

Sincerely,
Jane
E-iceblue support team
User avatar

Jane.Bai
 
Posts: 1156
Joined: Tue Nov 29, 2016 1:47 am

Return to Spire.PDF