Print Page | Close Window

GetPageText error if PDF rotated

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=2718
Printed Date: 22 Nov 24 at 12:51PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: GetPageText error if PDF rotated
Posted By: Gio
Subject: GetPageText error if PDF rotated
Date Posted: 23 Aug 13 at 2:27PM
Hi all,
I'm a new user and I'm testing the last Quick PDF Library trial version just downloaded.
One of the first strange things I found is that if I try to extract text with GetPageText function in mode 5 in a page rotated 90 degrees I obtain a completely wrong set o characters length
 
Example:
"BOYIBF+Courier",#000000,9.96,104.692,792,104.692,222.0242,96.1961,222.0242,96.1961,792,"                                                               ORDINE N.    234  DEL   15/07/11"
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,-8.4959
 
This doesn't happen if the page is not rotated.
Any idea concerning this?
If necessary  I can send or upload the sample file...
 
Thank you,
Giorgio



Replies:
Posted By: AndrewC
Date Posted: 26 Aug 13 at 7:16AM
Gio,

If you call QP.NormalizePage(0); before calling GetPageText then it will reset the page rotation to 0 and the text extraction will work as expected.

Andrew.


Posted By: Gio
Date Posted: 26 Aug 13 at 8:07AM
Perfect!
Thank you,
Giorgio



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