Read automatically text area PDf without mouse selection

Discussions about PDF management.
Post Reply
jsw
Posts: 1
Joined: Tue Feb 23, 2016 6:24 pm

Read automatically text area PDf without mouse selection

Post by jsw » Tue Feb 23, 2016 6:31 pm

Hi,
How can I automatically read the text of a PDF area without selecting the rectangle with the mouse?
How can I create automatically rectangle into GDViewer?
Fine Thanks

Cedric
Posts: 269
Joined: Sun Sep 02, 2012 7:30 pm

Re: Read automatically text area PDf without mouse selection

Post by Cedric » Thu Feb 25, 2016 1:07 pm

Hello,

I'm not sure to understand what you mean by "automatically" but if the goal is to extract text from a specific PDF document area without letting the user select it, then you should use the GetPageTextArea method.
It is documented here: https://www.gdpicture.com/guides/gdpicture/web ... tArea.html

You can also programmatically set a rectangle of selection wherever you need to by using the dedicated methods that are SetRectCoordinatesOnDocument, SetRectCoordinatesOnDocumentInches and SetRectCoordinatesOnViewer.
Here is the relevant documentation:

https://www.gdpicture.com/guides/gdpicture/web ... ument.html
https://www.gdpicture.com/guides/gdpicture/web ... nches.html
https://www.gdpicture.com/guides/gdpicture/web ... iewer.html

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests