Print Page | Close Window

drawtext and align pdflibrary Lite

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=2766
Printed Date: 04 Apr 26 at 7:27PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: drawtext and align pdflibrary Lite
Posted By: csharp
Subject: drawtext and align pdflibrary Lite
Date Posted: 22 Oct 13 at 3:56PM
I am using quickpdflibrary lite and C# on windows 7 64 bits
 
I do not understand how to combine drawtext(xpos,ypos,text) and SetTextAlign(1)
 
because I am not able to center tekst horizontally using SetTextAlign(1) and try several xpos values.
 
Any sugestions?



Replies:
Posted By: Ingo
Date Posted: 23 Oct 13 at 7:36AM
Hi CSharp,
 
you should have a look in the online reference. There's a sample:
http://www.quickpdflibrary.com/faq/drawtext-in-the-center-of-the-page.php" rel="nofollow - http://www.quickpdflibrary.com/faq/drawtext-in-the-center-of-the-page.php
 
Cheers and welcome here,
Ingo
 


-------------
Cheers,
Ingo



Posted By: csharp
Date Posted: 23 Oct 13 at 11:55AM
Hi Ingo thanks for the tip.
But my problem was to give a posx value in drawtext when settextalign(1), that seems contradictionary.
the posx value becomes (Pagewidth-textlength)/2 and that should be calculated by the library.
To give the midpoint as posx value never occurrded in my mind.
 
 



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