Print Page | Close Window

Rotate Text at any angle

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: General Discussion
Forum Description: Discussion board for Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=2292
Printed Date: 22 Nov 24 at 6:53PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Rotate Text at any angle
Posted By: amitsri
Subject: Rotate Text at any angle
Date Posted: 05 Jun 12 at 7:08AM
Hi all,

I need to rotate text at any given angle at any position and want to keep the rotated text within page area. Currently, when i draw my text at rotation of 315 angle and keep the text at the bottom let corner text got clipped. Please suggest me possible solution or function which will give me transform coordinates for rotated text, so i can adjust the text position to keep the text within page area.

Thanks,



Replies:
Posted By: Ingo
Date Posted: 05 Jun 12 at 4:46PM
Hi!

You'll always have to calculate regarding character-count, font-heights, and so on.
Additionally you should have a look on
SetOrigin and SetDimension.
There's no ready made algorithm for you.

Cheers, Ingo




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