<?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 : DrawHTMLTextBox and &amp;nbsp; and text align</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 : DrawHTMLTextBox and &amp;nbsp; and text align]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 05 Apr 2026 00:23:27 +0000</pubDate>
  <lastBuildDate>Fri, 13 Apr 2012 12:34:14 +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=2222</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[DrawHTMLTextBox and &amp;nbsp; and text align :  Just for comparison, here is...]]></title>
   <link>http://www.quickpdf.org/forum/drawhtmltextbox-and-nbsp-and-text-align_topic2222_post9485.html#9485</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1483">AndrewC</a><br /><strong>Subject:</strong> 2222<br /><strong>Posted:</strong> 13 Apr 12 at 12:34PM<br /><br /><div><div>Just for comparison, here is the output from QPL 8.15 Beta 2. &nbsp;There were some changes in the way &amp;nbsp characters were handled in QPL 8.</div></div><div><br></div><div><div><font face="'Courier New', Courier, mono">text with</font></div><div><font face="'Courier New', Courier, mono">spaces over</font></div><div><font face="'Courier New', Courier, mono">two lines</font></div><div><font face="'Courier New', Courier, mono">two line text</font></div><div><font face="'Courier New', Courier, mono"><br></font></div><div><font face="'Courier New', Courier, mono"><br></font></div><div><font face="'Courier New', Courier, mono">&nbsp; &nbsp;text wit</font></div><div><font face="'Courier New', Courier, mono">h spaces ov</font></div><div><font face="'Courier New', Courier, mono">er two lines</font></div><div><font face="'Courier New', Courier, mono">&nbsp; &nbsp;two line</font></div><div><font face="'Courier New', Courier, mono">text</font></div><div><font face="'Courier New', Courier, mono"><br></font></div><div><font face="'Courier New', Courier, mono"><br></font></div><div><font face="'Courier New', Courier, mono">&nbsp; &nbsp; text</font></div><div><font face="'Courier New', Courier, mono">with spaces</font></div><div><font face="'Courier New', Courier, mono">over two</font></div><div><font face="'Courier New', Courier, mono">lines</font></div><div><font face="'Courier New', Courier, mono">&nbsp; &nbsp; two line</font></div><div><font face="'Courier New', Courier, mono">text</font></div></div><div><br></div><div><br></div><div>Andrew.</div><span style="font-size:10px"><br /><br />Edited by AndrewC - 13 Apr 12 at 12:35PM</span>]]>
   </description>
   <pubDate>Fri, 13 Apr 2012 12:34:14 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/drawhtmltextbox-and-nbsp-and-text-align_topic2222_post9485.html#9485</guid>
  </item> 
  <item>
   <title><![CDATA[DrawHTMLTextBox and &amp;nbsp; and text align :  DrawHTMLTextBox have (Iknow...]]></title>
   <link>http://www.quickpdf.org/forum/drawhtmltextbox-and-nbsp-and-text-align_topic2222_post9460.html#9460</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1320">Jan</a><br /><strong>Subject:</strong> 2222<br /><strong>Posted:</strong> 11 Apr 12 at 4:25PM<br /><br /><strong><FONT size=2 face="Courier New"><FONT size=2><DIV>DrawHTMLTextBox have (I&nbsp;know only&nbsp;7.26 version) a special behavior with using &amp;nbsp;</DIV><DIV>1) When I don't use &amp;nbsp; , DrawHTMLTextBox trim start space.</DIV><DIV>2) When I&nbsp;use &amp;nbsp; , DrawHTMLTextBox wrong&nbsp;divide text between lines.</DIV><DIV>3) When I&nbsp;use &amp;nbsp; instead of start (and after &lt;br&gt;)&nbsp;spaces DrawHTMLTextBox </DIV><DIV>&nbsp; work OK,</DIV><DIV>but in case "one line text box" for HTML text I prefer draw maximum text in this text box.</DIV><DIV>May problem is how recognize this case :-)</DIV><DIV><SPAN id=result_ lang=en =short_text closure_uid_7cj9tw="334" a="undefined" f="4"><SPAN =hps closure_uid_7cj9tw="496">I do not expect answer, may be this sample will be useful for someone.</SPAN></SPAN></DIV><DIV>&nbsp;</DIV><DIV>qp.SetOrigin(1);</DIV><DIV>qp.SetMeasurementUnits(0);</DIV><DIV>qp.SetPageDimensions(598.0, 845.0);<FONT color=#0000ff size=2><FONT color=#0000ff size=2><P>int</FONT></FONT><FONT size=2> iFontID = qp.AddTrueTypeFont(</FONT><FONT color=#a31515 size=2><FONT color=#a31515 size=2>"Times New Roman"</FONT></FONT><FONT size=2>, 0);</P><DIV></FONT></FONT><FONT size=2>qp.SetHTMLNormalFont(</FONT><FONT color=#a31515 size=2><FONT color=#a31515 size=2>"Default"</FONT></FONT><FONT size=2>, iFontID);</DIV></DIV></FONT><FONT size=2><P></FONT><FONT color=#008000 size=2><FONT color=#008000 size=2>// 1) DrawHTMLTextBox trim start spaces</P></FONT></FONT><FONT size=2><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>string</FONT></FONT><FONT size=2> textHTML = </FONT><FONT color=#a31515 size=2><FONT color=#a31515 size=2>"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; text with spaces over two lines&lt;br&gt;&nbsp;&nbsp;&nbsp; &nbsp;two line text"</FONT></FONT><FONT size=2>;</P><P>qp.DrawHTMLTextBox(0, 0, 50, 500, </FONT><FONT color=#a31515 size=2><FONT color=#a31515 size=2>"&lt;font size=\"10pt\"&gt;&lt;p spacing=\"-1.2\"&gt;"</FONT></FONT><FONT size=2> + textHTML + </FONT><FONT color=#a31515 size=2><FONT color=#a31515 size=2>"&lt;/p&gt;&lt;/f&gt;"</FONT></FONT><FONT size=2>);</P><P></FONT><FONT color=#008000 size=2><FONT color=#008000 size=2>// 2) DrawHTMLTextBox don't trim start spaces (OK), maximum use box width (OK when I have one line text), wrong divide word at end of line </P></FONT></FONT><FONT size=2><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>string</FONT></FONT><FONT size=2> pomHTML = textHTML.Replace(</FONT><FONT color=#a31515 size=2><FONT color=#a31515 size=2>" "</FONT></FONT><FONT size=2>, </FONT><FONT color=#a31515 size=2><FONT color=#a31515 size=2>"&amp;nbsp;"</FONT></FONT><FONT size=2>);</P><P>qp.DrawHTMLTextBox(0, 60, 50, 500, </FONT><FONT color=#a31515 size=2><FONT color=#a31515 size=2>"&lt;font size=\"10pt\"&gt;&lt;p spacing=\"-1.2\"&gt;"</FONT></FONT><FONT size=2> + pomHTML + </FONT><FONT color=#a31515 size=2><FONT color=#a31515 size=2>"&lt;/p&gt;&lt;/f&gt;"</FONT></FONT><FONT size=2>);</P><DIV>// 3) </DIV><DIV>textHTML = </FONT><FONT color=#a31515 size=2><FONT color=#a31515 size=2>"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;text with spaces over two lines&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;two line text"</FONT></FONT><FONT size=2>;</DIV><P>qp.DrawHTMLTextBox(0, 140, 50, 500, </FONT><FONT color=#a31515 size=2><FONT color=#a31515 size=2>"&lt;font size=\"10pt\"&gt;&lt;p spacing=\"-1.2\"&gt;"</FONT></FONT><FONT size=2> + textHTML + </FONT><FONT color=#a31515 size=2><FONT color=#a31515 size=2>"&lt;/p&gt;&lt;/f&gt;"</FONT></FONT><FONT size=2>);</P></FONT></FONT></strong>]]>
   </description>
   <pubDate>Wed, 11 Apr 2012 16:25:32 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/drawhtmltextbox-and-nbsp-and-text-align_topic2222_post9460.html#9460</guid>
  </item> 
 </channel>
</rss>