Print Page | Close Window

Question

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=2248
Printed Date: 14 Aug 25 at 6:02AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Question
Posted By: darkv
Subject: Question
Date Posted: 27 Apr 12 at 11:14PM
To all of you,

I believe i saw functions allowing to extract text from a page using a rectangle coordinates, and another allowing the getextracttext from the top to the bottom.

Did i dream?

If not, are these functions only in the 8.xx release (currently i'm a 7.26 user)

Thanks in advance for your help

Rgds
Eric



Replies:
Posted By: edvoigt
Date Posted: 28 Apr 12 at 3:12PM
Hi,

no dream, but as you assume:

DASetTextExtractionArea / SetTextExtractionArea

Version history
This function was introduced in Quick PDF Library version 8.13.

Description
Sets the area for text extraction. Any text that appears outside this area will be excluded from the results.
This function affects the results of the ExtractFilePageText and DAExtractPageText functions only.
The coordinate values passed into this function are specified in points with the bottom left corner of the page as the origin.
The area limitation can be removed by calling this function with a value of zero for both the Width and Height parameters.

Cheers,

Werner


Posted By: darkv
Date Posted: 30 Apr 12 at 11:32AM
Thanks Werner for your reply.

So i have to switch to new release

Rgds
Eric


Posted By: AndrewC
Date Posted: 02 May 12 at 3:52PM
You can extract the full page text and then extract only the text you need  based on the bounding box data returned from GetPageText(3);

DASetTextExtractionArea / SetTextExtractionArea  was added to make it easy to extract 1 or 2 pieces of text quickly but the process is not optimised for extracting 20 values for example.  If you need to extract many values then it would be better to write your own simple rectangle checking routines.

Andrew.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk