<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>Debenu Quick PDF Library - PDF SDK Community Forum : SetTextScaling + Align Right problem</title>
  <link>http://www.quickpdf.org/forum/</link>
  <description><![CDATA[This is an XML content feed of; Debenu Quick PDF Library - PDF SDK Community Forum : I need help - I can help : SetTextScaling + Align Right problem]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 12 May 2026 18:55:55 +0000</pubDate>
  <lastBuildDate>Thu, 28 Feb 2008 06:10:53 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 11.01</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.quickpdf.org/forum/RSS_post_feed.asp?TID=870</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Debenu Quick PDF Library - PDF SDK Community Forum]]></title>
   <url>http://www.quickpdf.org/forum/forum_images/QPDF_Forum_Title.png</url>
   <link>http://www.quickpdf.org/forum/</link>
  </image>
  <item>
   <title><![CDATA[SetTextScaling + Align Right problem : I found a problem with the text...]]></title>
   <link>http://www.quickpdf.org/forum/settextscaling-align-right-problem_topic870_post4170.html#4170</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=810">Compertis</a><br /><strong>Subject:</strong> 870<br /><strong>Posted:</strong> 28 Feb 08 at 6:10AM<br /><br />I found a problem with the text scaling<br />I'm drawing Right-Aligned fields on a pre-printed module<br />PDF lib version = 4.41 (I think I don't need to update it because I didn't find any fix I really need, and because I will need to update it in every place I use the software)<br />Measurement Units = mm<br />Origin = top left<br />Language = VB<br /><br />Since the scaling with Left-Align works right<br />Draw Align Left, scaling 100%<br /><table width="99%"><tr><td><pre class="BBcode">------------------<br />|XXXXXXXX&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |<br />------------------</pre></td></tr></table><br /><br />Draw Align Left, scaling 50%<br /><table width="99%"><tr><td><pre class="BBcode">------------------<br />|XXXX&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|<br />------------------</pre></td></tr></table><br /><br />the problems come with the Right alignment<br /><br />Draw Align Right, scaling 100%<br /><table width="99%"><tr><td><pre class="BBcode">------------------<br />|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; XXXXXXXX|<br />------------------</pre></td></tr></table><br /><br />Draw Align Right, scaling 50%<br />I got<br /><table width="99%"><tr><td><pre class="BBcode">------------------<br />|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; XXXX&nbsp;&nbsp;&nbsp;&nbsp;|<br />------------------</pre></td></tr></table><br />but I expected<br /><table width="99%"><tr><td><pre class="BBcode">------------------<br />|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;XXXX|<br />------------------</pre></td></tr></table><br /><br />I'm trying to fix it by moving the text right of the difference between the text width = 100 and the text width = myTextScaling<br /><table width="99%"><tr><td><pre class="BBcode">offset = GetTextWidth(text) - ((GetTextWidth(text) / 100) * myTextScaling)<br />DrawText x + offset, y, text</pre></td></tr></table><br />I need obtain the scaled text width by hand because GetTextWidth() returns always the width at 100%<br />The problem is that the offset I calculate is never accurate and the text is printed always at the wrong position<br /><br />Thank you for any help,<br />Daniele]]>
   </description>
   <pubDate>Thu, 28 Feb 2008 06:10:53 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/settextscaling-align-right-problem_topic870_post4170.html#4170</guid>
  </item> 
 </channel>
</rss>