Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - GetPageText error if PDF rotated
  FAQ FAQ  Forum Search   Register Register  Login Login

GetPageText error if PDF rotated

 Post Reply Post Reply
Author
Message
Gio View Drop Down
Beginner
Beginner
Avatar

Joined: 23 Aug 13
Location: Italy
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote Gio Quote  Post ReplyReply Direct Link To This Post Topic: GetPageText error if PDF rotated
    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
Back to Top
AndrewC View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 08 Dec 10
Location: Geelong, Aust
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndrewC Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Gio View Drop Down
Beginner
Beginner
Avatar

Joined: 23 Aug 13
Location: Italy
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote Gio Quote  Post ReplyReply Direct Link To This Post Posted: 26 Aug 13 at 8:07AM
Perfect!
Thank you,
Giorgio
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store