<?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 : FitTextBox doesnt work</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 : FitTextBox doesnt work]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 20 May 2026 19:07:19 +0000</pubDate>
  <lastBuildDate>Fri, 04 Jan 2008 12:03:27 +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=852</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[FitTextBox doesnt work : I think you had better read the...]]></title>
   <link>http://www.quickpdf.org/forum/fittextbox-doesnt-work_topic852_post4081.html#4081</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=115">chicks</a><br /><strong>Subject:</strong> 852<br /><strong>Posted:</strong> 04 Jan 08 at 12:03PM<br /><br />I think you had better read the document more closely.  It doesn't say it will spread out text to fit available space, it says it will shrink the font size so that long text will fit in the available space.<br /><br />There are functions available to calculate the length of the text to be printed, then you can calculate the difference and use SetTextCharSpacing to spread out the text, if you wish.<span style="font-size:10px"><br /><br />Edited by chicks - 04 Jan 08 at 12:06PM</span>]]>
   </description>
   <pubDate>Fri, 04 Jan 2008 12:03:27 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/fittextbox-doesnt-work_topic852_post4081.html#4081</guid>
  </item> 
  <item>
   <title><![CDATA[FitTextBox doesnt work : I have some PDF templates that...]]></title>
   <link>http://www.quickpdf.org/forum/fittextbox-doesnt-work_topic852_post4080.html#4080</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=153">jabaltie</a><br /><strong>Subject:</strong> 852<br /><strong>Posted:</strong> 04 Jan 08 at 11:41AM<br /><br />I have some PDF templates that look like contracts. They're PDFs with empty form fields.<br><br>I'm removing the form fields and replacing them by using DrawTextBox instead (because FlattenFormField function is messy).<br><br>On some paragraphs , there's a field supplied for the client name and for this kind of field, FitTextBox would be better than using DrawTextBox.<br><br>Except that it doesnt work <img src="http://www.quickpdf.org/forum/smileys/smiley19.gif" border="0" align="absmiddle" alt="Cry" /><br><br>Guess there's some detail that I dont know.<br><br>I have made a script to reproduce the problem :<br><br>-----------<br><br>OPTION EXPLICIT<br><br>DIM objQPDF,lni,lnt<br>DIM X,Y,W,H,A,S<br><br>Set objQPDF = WScript.CreateObject("ISED.QUICKPDF")<br><br>objQPDF.unlockkey("yourkey")<br><br>objQPDF.NewDocument()<br>objQPDF.DocumentCount()<br><br>objQPDF.LoadFromFile("TEST035.PDF")<br><br>' GET TEST035.PDF from http://www.DES.online.unimep.br/au/pub/TEST035.pdf<br><br>lni=1<br><br>X=objQPDF.GetFormFieldBound(lni,0)<br>Y=objQPDF.GetFormFieldBound(lni,1)<br>W=objQPDF.GetFormFieldBound(lni,2)<br>H=objQPDF.GetFormFieldBound(lni,3)<br>A=objQPDF.GetFormFieldAlignment(lni)<br>S=objQPDF.GetFormFieldTextSize(lni)<br><br>lnt=objQPDF.FORMFIELDCOUNT()<br>for lni=lnt to 1 step -1<br>&nbsp; objQPDF.DeleteFormField(lni)<br>next<br><br>objQPDF.SetTextAlign(A)<br>objQPDF.SetTextSize(S)<br><br>CALL objQPDF.FITTEXTBOX(X,Y,W,H,"JOSE ADRIANO BALTIERI",2)<br><br>objQPDF.SaveToFile("TEST035.PDF")<br><br>WScript.Echo "OK !"<br><br>--------------------<br><br>I'd expect to have "JOSE ADRIANO BALTIERI" scattered but it appears at the right, pretty much like as if I had used the DrawTextBox function. <br><br>What it would be wrong ?<br><br>]]>
   </description>
   <pubDate>Fri, 04 Jan 2008 11:41:53 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/fittextbox-doesnt-work_topic852_post4080.html#4080</guid>
  </item> 
 </channel>
</rss>