Print Page | Close Window

text extraction

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=3201
Printed Date: 07 Nov 25 at 8:54PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: text extraction
Posted By: kubeos
Subject: text extraction
Date Posted: 10 Nov 15 at 4:20PM
cannot see why:

QP.SetOrigin(1);
        QP.SetTextExtractionArea( 0, 0, QP.PageWidth(), QP.PageHeight());    
QP.GetPageText( 8); // <- ok, some text

works as expected, but
QP.SetOrigin(0);
QP.SetTextExtractionArea( 0, 0, QP.PageWidth(), QP.PageHeight());   
QP.GetPageText( 8); // <- returns empty string

will not ?
Any help welcome.



Replies:
Posted By: tfrost
Date Posted: 11 Nov 15 at 9:59AM
With set origin 0, the origin of measurement is the bottom left corner.  So the vertical co-ordinate of the top of the area (which you must supply as the second parameter in SetTextExtractionArea) should be -QP.PageHeight().



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