<?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 : GetTextWidth for form field</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 : GetTextWidth for form field]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 27 Apr 2026 12:20:18 +0000</pubDate>
  <lastBuildDate>Mon, 19 Oct 2015 09:07:39 +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=3186</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[GetTextWidth for form field : Hi,I&amp;#039;ve found a solution...]]></title>
   <link>http://www.quickpdf.org/forum/gettextwidth-for-form-field_topic3186_post12742.html#12742</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2785">FLA</a><br /><strong>Subject:</strong> 3186<br /><strong>Posted:</strong> 19 Oct 15 at 9:07AM<br /><br />Hi,<br><br>I've found a solution here :&nbsp;http://www.debenu.com/kb/converting-pixels-and-inches-to-postscript-points/<br><br>I needed to convert pixels to points to do my job.<br><br>Thanks]]>
   </description>
   <pubDate>Mon, 19 Oct 2015 09:07:39 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/gettextwidth-for-form-field_topic3186_post12742.html#12742</guid>
  </item> 
  <item>
   <title><![CDATA[GetTextWidth for form field : Hi FLA,Perhaps that &amp;#034;FontSize&amp;#034;...]]></title>
   <link>http://www.quickpdf.org/forum/gettextwidth-for-form-field_topic3186_post12740.html#12740</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 3186<br /><strong>Posted:</strong> 17 Oct 15 at 7:12PM<br /><br />Hi FLA,<div><br></div><div><div>Perhaps that "FontSize" returns 0 depends on the used font?:</div><div>http://www.debenu.com/docs/pdf_library_reference/FontSize.php</div><div><br></div><div>Yes. You can set the textsize:</div><div>http://www.debenu.com/docs/pdf_library_reference/SetTextSize.php</div><div><br></div><div>GetTextWidth won't work in your case 'cause it's based on "FontSize":</div><div>http://www.debenu.com/docs/pdf_library_reference/GetTextWidth.php</div></div><div><br></div><div>Cheers and welcome here,</div><div>Ingo</div><div><br></div>]]>
   </description>
   <pubDate>Sat, 17 Oct 2015 19:12:29 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/gettextwidth-for-form-field_topic3186_post12740.html#12740</guid>
  </item> 
  <item>
   <title><![CDATA[GetTextWidth for form field : Hi,I&amp;#039;m newto QuickPdf and...]]></title>
   <link>http://www.quickpdf.org/forum/gettextwidth-for-form-field_topic3186_post12735.html#12735</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2785">FLA</a><br /><strong>Subject:</strong> 3186<br /><strong>Posted:</strong> 08 Oct 15 at 5:48PM<br /><br />Hi,<br><br>I'm new&nbsp;<span style="line-height: 16.8px; : rgb251, 251, 253;">to QuickPdf and have a problem with the following task :<br><br>- I've got three fields "as a group" in a customer PDF and the text i need to put in them is large, so i must fit in the three fields (field1, field2 and field3).</span><div><span style="line-height: 16.8px; : rgb251, 251, 253;"><br></span></div><div><span style="line-height: 16.8px; : rgb251, 251, 253;">The text is an enumeration like : item1, item2, item3, item4, item5, item6, item7, ...<br><br>I need to parse this text to the 3 fields depending on the fields width</span></div><div><span style="line-height: 16.8px; : rgb251, 251, 253;"><br></span></div><div><span style="line-height: 16.8px; : rgb251, 251, 253;">ex :</span></div><div><span style="line-height: 16.8px; : rgb251, 251, 253;">Field1 : item1, item2, item3,</span></div><div><span style="line-height: 16.8px; : rgb251, 251, 253;">Field2 : item4, item5, item6,</span></div><div><span style="line-height: 16.8px; : rgb251, 251, 253;">Field3 : item7</span></div><div><span style="line-height: 16.8px; : rgb251, 251, 253;"><br></span></div><div><span style="line-height: 16.8px; : rgb251, 251, 253;">I made something to do the job with iteration such as</span></div><div>GetTextWidth("<span style="line-height: 16.8px; : rgb251, 251, 253;">item1, item2, item3, item4, item5, item6, item7") --&gt; too long for field1&nbsp;</span></div><div><span style="line-height: 16.8px;">GetTextWidth("</span><span style="line-height: 16.8px; : rgb251, 251, 253;">item1, item2, item3, item4, item5, item6") &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;--&gt; too long for field1</span></div><div><span style="line-height: 16.8px;">GetTextWidth("</span><span style="line-height: 16.8px; : rgb251, 251, 253;">item1, item2, item3, item4, item5") &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; --&gt; too long for field1</span></div><div><span style="line-height: 16.8px;">GetTextWidth("</span><span style="line-height: 16.8px; : rgb251, 251, 253;">item1, item2, item3, item4") &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;--&gt; too long for field1</span></div><div><span style="line-height: 16.8px;">GetTextWidth("</span><span style="line-height: 16.8px; : rgb251, 251, 253;">item1, item2, item3") &lt; Field1.width &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;--&gt; so OK for field1</span></div><div><span style="line-height: 16.8px; : rgb251, 251, 253;"><br></span></div><div><span style="line-height: 16.8px; : rgb251, 251, 253;">and so on..for field2 and field3</span></div><div><span style="line-height: 16.8px; : rgb251, 251, 253;"><br></span></div><div><span style="line-height: 16.8px; : rgb251, 251, 253;">It's ok even if there is often enough space to put an extra item on each field (1)</span></div><div><span style="line-height: 16.8px; : rgb251, 251, 253;"><br></span></div><div><span style="line-height: 16.8px; : rgb251, 251, 253;">In my case&nbsp;</span>GetFormFieldTextSize(field1) = 10 and&nbsp;FontSize() return 0.</div><div>Is there a way to set the FontSize() ?</div><div>How the GetTextWidth(string) works because FontSize() return 0 ?</div><div><span style="line-height: 16.8px; : rgb251, 251, 253;"><br></span></div><div><span style="line-height: 16.8px; : rgb251, 251, 253;">(1) : Is there another function to do this test more accuratly ?</span></div><div><span style="line-height: 16.8px; : rgb251, 251, 253;"><br></span></div><div><span style="line-height: 16.8px; : rgb251, 251, 253;">Have you got an idea or a tip to enhance my job ?</span></div><div><span style="line-height: 16.8px; : rgb251, 251, 253;"><br></span></div><div><span style="line-height: 16.8px; : rgb251, 251, 253;">If i've got a bigger string to fit, I'd like to iterate and reduce the font size by decrement to finally fit the three fields...but how to test the string width with smaller font ?</span></div><div><span style="line-height: 16.8px; : rgb251, 251, 253;"><br></span></div><div><span style="line-height: 16.8px; : rgb251, 251, 253;">Thanks in advance</span></div>]]>
   </description>
   <pubDate>Thu, 08 Oct 2015 17:48:23 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/gettextwidth-for-form-field_topic3186_post12735.html#12735</guid>
  </item> 
 </channel>
</rss>