<?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 : Codepage</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 : Codepage]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 02 May 2026 00:23:33 +0000</pubDate>
  <lastBuildDate>Thu, 16 Apr 2020 22:08:41 +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=3803</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[Codepage : Thanks Ingo for pointing my in...]]></title>
   <link>http://www.quickpdf.org/forum/codepage_topic3803_post15204.html#15204</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1054">eborger</a><br /><strong>Subject:</strong> 3803<br /><strong>Posted:</strong> 16 Apr 20 at 10:08PM<br /><br />Thanks Ingo for pointing my in the right direction, the difference is UTF-16 instead of UTF-8, so I am converting from ANSI now using&nbsp;MultiByteToWideChar(), and the tricky part is that you have to use the correct codepage as one (the first) of the parameters in this function.<div><br></div><div>using&nbsp;MultiByteToWideChar(1257, etc, etc&nbsp; ) works fine.</div><div><br></div><div>Thank you and stay safe.</div>]]>
   </description>
   <pubDate>Thu, 16 Apr 2020 22:08:41 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/codepage_topic3803_post15204.html#15204</guid>
  </item> 
  <item>
   <title><![CDATA[Codepage : Hi Edgar,   if i look inside...]]></title>
   <link>http://www.quickpdf.org/forum/codepage_topic3803_post15202.html#15202</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 3803<br /><strong>Posted:</strong> 16 Apr 20 at 2:45PM<br /><br />Hi Edgar,<p><br></p><p>if i look inside both pdf-files i can see that they were made with the same dev-code-syntax.</p><p>On the other side string handling was changed (directly after 7.26) from utf-8 to utf-16 to make it easier creating really global apps.<br></p><p>Now you'll need string to unicode conversion.</p><p>Your "cszansi2wide" seems to be a bit older?</p><p>It'll work with utf-8 but obviously not with utf-16.</p><p><br></p><p>Cheers, Ingo</p>]]>
   </description>
   <pubDate>Thu, 16 Apr 2020 14:45:42 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/codepage_topic3803_post15202.html#15202</guid>
  </item> 
  <item>
   <title><![CDATA[Codepage : In the developer guide you should...]]></title>
   <link>http://www.quickpdf.org/forum/codepage_topic3803_post15200.html#15200</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 3803<br /><strong>Posted:</strong> 16 Apr 20 at 10:46AM<br /><br />In the developer guide you should read the chapter:<br>Unicode, UTF-8 and the DLL and Delphi Editions<br><br>]]>
   </description>
   <pubDate>Thu, 16 Apr 2020 10:46:26 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/codepage_topic3803_post15200.html#15200</guid>
  </item> 
  <item>
   <title><![CDATA[Codepage : Hi Edgar,if i read &amp;#034;ansi2wide&amp;#034;...]]></title>
   <link>http://www.quickpdf.org/forum/codepage_topic3803_post15195.html#15195</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 3803<br /><strong>Posted:</strong> 16 Apr 20 at 7:38AM<br /><br />Hi Edgar,<br><br><br>if i read "ansi2wide" i think in this direction you should search further more.<br>You should use more control cause you don't know what's wrong.<br>After each function call don't work with the returning value but first check if this value is a valid one.<br>After each function call you can use a LastErrorCode to check if it's all okay.<br><br>If you want you can send me your pdf files to check them by myself (i've sent you an email).<br><br>This i've written in a past thread:<br>"...nternally strings will be handled as unicode.<br>Up to library version 7.26 they were encoded as utf8.<br>Starting from 8.xx version they are encoded with utf16.<br>So if you wanna handle with unicode before input you <br>should use something like encodeUtf16 or for output<br>decodeUtf16...."<br><br>If you'll search in the online references of Debenu/Foxit you'll find many similar issues...<br><br>Reading the content of the three links below willgive you an idea what i mean:<br>http://www.quickpdf.org/forum/dplsetformfieldvaluebytitlea-and-utf8_topic3632.html<br>http://www.quickpdf.org/forum/getpagetext4-returns-cryptic-characters_topic1914.html<br>https://www.debenu.com/docs/pdf_library_reference/SetAnsiMode.php<br><br><br>]]>
   </description>
   <pubDate>Thu, 16 Apr 2020 07:38:56 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/codepage_topic3803_post15195.html#15195</guid>
  </item> 
  <item>
   <title><![CDATA[Codepage : regarding the code, it is in Xbase++,...]]></title>
   <link>http://www.quickpdf.org/forum/codepage_topic3803_post15193.html#15193</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1054">eborger</a><br /><strong>Subject:</strong> 3803<br /><strong>Posted:</strong> 15 Apr 20 at 9:55PM<br /><br />regarding the code, it is in Xbase++, bellow is a prototype of the code I use:<div><br></div><div><br></div><div><div><span style="white-space:pre">		</span>fn&nbsp; &nbsp; &nbsp; &nbsp;:= pdf:qCall("AddTrueTypeFont", pdf:oPdf, cszansi2wide('Arial {1257}'), 0 )</div><div>load font Arial with codepage 1257</div><div><span style="white-space:pre">		</span>oFont := pdf:qCall( "SelectFont", pdf:oPdf, fn )</div><div>select loaded font</div><div><span style="white-space:pre">		</span>ok<span style="white-space:pre">	</span>&nbsp;:= pdf:qCall( "SetTextSize", pdf:oPdf, Dbl(8) )</div><div>set size to 8 (font = 8.Arial</div><div><span style="white-space: pre;">		</span>x = 32</div><div><span style="white-space:pre">		</span>l = 6</div><div><span style="white-space:pre">		</span>for i = 2 to 15</div><div><span style="white-space:pre">			</span>for j = 0 to 15</div><div><span style="white-space:pre">			</span>&nbsp; &nbsp;pdf:qCall("DrawText", pdf:oPdf, dbl(l), dbl(8.5+(j*3)) , cSzAnsi2Wide(chr(x)) )</div><div>draw text&nbsp;</div><div><span style="white-space:pre">				</span>x = x + 1</div><div><span style="white-space:pre">			</span>next j</div><div><span style="white-space: pre;">			</span>l = l + 2</div><div><span style="white-space:pre">		</span>next i</div></div><div><br></div><div><br></div><div>I hope you can understand the coding, let me know if you have any questions</div>]]>
   </description>
   <pubDate>Wed, 15 Apr 2020 21:55:13 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/codepage_topic3803_post15193.html#15193</guid>
  </item> 
  <item>
   <title><![CDATA[Codepage : Hi Ingo,I meant the quick pdf...]]></title>
   <link>http://www.quickpdf.org/forum/codepage_topic3803_post15192.html#15192</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1054">eborger</a><br /><strong>Subject:</strong> 3803<br /><strong>Posted:</strong> 15 Apr 20 at 9:48PM<br /><br />Hi Ingo,<div><br></div><div>I meant the quick pdf library version, V7.26 and V10.16. Windows is 10 (the same machine).</div><div>and yes, I selected the font, as I said, the same program works for v7 and v10 of QPDF lib, the only difference is the strings that are unicode for V10 and ANSI for V7.</div><div><br></div><div>I can send you both files if you wish, just give me an email.</div><div><br></div><div>Thanks for your help, and regards,</div><div>Edgar</div><div><br></div>]]>
   </description>
   <pubDate>Wed, 15 Apr 2020 21:48:01 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/codepage_topic3803_post15192.html#15192</guid>
  </item> 
  <item>
   <title><![CDATA[Codepage : Hi Edgar,what do you mean with...]]></title>
   <link>http://www.quickpdf.org/forum/codepage_topic3803_post15191.html#15191</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 3803<br /><strong>Posted:</strong> 15 Apr 20 at 8:48PM<br /><br />Hi Edgar,<br><br>what do you mean with V.7 and V.10?<br>Windows 7 and Windows 10?<br>Or QuickPDF-version 7.xx and version 10.xx?<br>You'll know that'snot enough to embed the font - you have to select it, too.<br>Did you check that the font is embedded successfully?<br>Perhaps it has to do with how you're working with the strings?<br>You'll know that QuickPDF-strings are unicode strings?<br>Your relevant code could be very useful to help...<br><br>]]>
   </description>
   <pubDate>Wed, 15 Apr 2020 20:48:22 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/codepage_topic3803_post15191.html#15191</guid>
  </item> 
  <item>
   <title><![CDATA[Codepage : runing the same program with V.7...]]></title>
   <link>http://www.quickpdf.org/forum/codepage_topic3803_post15190.html#15190</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1054">eborger</a><br /><strong>Subject:</strong> 3803<br /><strong>Posted:</strong> 15 Apr 20 at 5:43PM<br /><br />runing the same program with V.7 works fine, with V.10 not]]>
   </description>
   <pubDate>Wed, 15 Apr 2020 17:43:59 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/codepage_topic3803_post15190.html#15190</guid>
  </item> 
  <item>
   <title><![CDATA[Codepage : Hello,I am trying to use baltic...]]></title>
   <link>http://www.quickpdf.org/forum/codepage_topic3803_post15189.html#15189</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1054">eborger</a><br /><strong>Subject:</strong> 3803<br /><strong>Posted:</strong> 15 Apr 20 at 4:46PM<br /><br />Hello,<div><br></div><div>I am trying to use baltic codepage (CP1257), and I cannot get all characters I need, I made a test program printing all characters from 00 to 255, and several characters that are special to baltic language do not show in the resulting pdf.</div><div><br></div><div>I used AddTrueTypeFont "Arial {1257}" (and other code pages as well) but did not get the whole table.</div><div><br></div><div>Can you help ?</div><div><br></div><div>Thanks,</div><div>Edgar</div><div><br></div><div><a href="http://en.wikipedia.org/wiki/Windows-1257" target="_blank" rel="nofollow">http://en.wikipedia.org/wiki/Windows-1257</a><br></div><span style="font-size:10px"><br /><br />Edited by eborger - 15 Apr 20 at 4:53PM</span>]]>
   </description>
   <pubDate>Wed, 15 Apr 2020 16:46:54 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/codepage_topic3803_post15189.html#15189</guid>
  </item> 
 </channel>
</rss>