<?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 : File Path</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 : File Path]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 04 Apr 2026 18:57:55 +0000</pubDate>
  <lastBuildDate>Fri, 05 Feb 2010 12:26:48 +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=1330</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[File Path : I checked the API reference again,...]]></title>
   <link>http://www.quickpdf.org/forum/file-path_topic1330_post6114.html#6114</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1231">mingoal</a><br /><strong>Subject:</strong> 1330<br /><strong>Posted:</strong> 05 Feb 10 at 12:26PM<br /><br />&nbsp;&nbsp; I checked the API reference again, and I found that Quick PDF supports unicode file name, but I need to encode the file name using UTF8. Thus, I use a small function to convert a CString object to UTF8-encoding string. Here are my c++ sample code:<DIV><table width="99%"><tr><td><pre class="BBcode"></DIV><DIV>char* CString2UTF8(CString&amp; strSrc)<BR>{<BR>&nbsp;&nbsp; long&nbsp; lBufferSize=0;&nbsp; <BR>&nbsp;&nbsp; long&nbsp; lResult&nbsp;=0;&nbsp; <BR>&nbsp;&nbsp; long&nbsp; lSrcLen=0;&nbsp;&nbsp;<BR>&nbsp;&nbsp; lSrcLen=&nbsp; strSrc.GetLength()&nbsp; ; &nbsp;<BR>&nbsp;&nbsp; lBufferSize&nbsp; =&nbsp; lSrcLen*&nbsp; 3&nbsp; +&nbsp; 1&nbsp; ;&nbsp; </DIV><DIV>&nbsp;&nbsp; <font color=RED>//Don't forget to release the buffer</font><BR>&nbsp;&nbsp; char&nbsp; *pCharUtf8&nbsp; =&nbsp; new&nbsp; char&#091;lBufferSize&#093;&nbsp; ;&nbsp; &nbsp;<BR>&nbsp; //Translate&nbsp; using&nbsp; code&nbsp; page&nbsp; 65001(UTF-8).&nbsp;&nbsp;&nbsp;<BR>&nbsp; lResult&nbsp;=&nbsp; WideCharToMultiByte(CP_UTF8,&nbsp; 0,strSrc.AllocSysString(),&nbsp; lSrcLen,&nbsp; pCharUtf8,&nbsp;lBufferSize,&nbsp; NULL,&nbsp; 0)&nbsp; ;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;pCharUtf8&#091;lResult&nbsp;&#093;&nbsp; =&nbsp; NULL&nbsp; ;&nbsp;<BR>&nbsp;&nbsp;&nbsp;return pCharUtf8;<BR>}</DIV><DIV></pre></td></tr></table></DIV><DIV>&nbsp;Sample:</DIV><DIV><table width="99%"><tr><td><pre class="BBcode"></DIV><DIV>//strFilePath is a CString object</DIV><DIV>char *pCharPath=CString2UTF8(strFilePath);<BR>&nbsp;if(m_docQPDF.SaveToFile(pCharPath) == 0)<BR>&nbsp;{<BR>&nbsp;&nbsp;delete &#091;&#093; pCharPath;<BR>&nbsp;&nbsp;pCharPath=NULL;<BR>&nbsp;&nbsp;return FALSE;<BR>&nbsp;}<BR>&nbsp;delete &#091;&#093; pCharPath;<BR>&nbsp;pCharPath=NULL;</DIV><DIV></pre></td></tr></table></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 05 Feb 2010 12:26:48 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/file-path_topic1330_post6114.html#6114</guid>
  </item> 
  <item>
   <title><![CDATA[File Path : Thank you for your reply, I really...]]></title>
   <link>http://www.quickpdf.org/forum/file-path_topic1330_post6090.html#6090</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1231">mingoal</a><br /><strong>Subject:</strong> 1330<br /><strong>Posted:</strong> 01 Feb 10 at 12:46AM<br /><br />Thank you for your reply, I really appreciate it. I will try it again under your help. <DIV>&nbsp;</DIV><DIV>&nbsp;Best regards!</DIV><DIV>&nbsp; mingoal</DIV>]]>
   </description>
   <pubDate>Mon, 01 Feb 2010 00:46:36 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/file-path_topic1330_post6090.html#6090</guid>
  </item> 
  <item>
   <title><![CDATA[File Path : Hi Mingoal!The path isn&amp;#039;t...]]></title>
   <link>http://www.quickpdf.org/forum/file-path_topic1330_post6087.html#6087</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 1330<br /><strong>Posted:</strong> 31 Jan 10 at 1:37PM<br /><br />Hi Mingoal!<br><br>The path isn't the problem ... the used characters between "mingoal" and "map" are the problem.<br>You take the path/file-name as a string but in strings you can't work with chinese characters.<br>The newest versions of QuickPDF are changed to work with unicode-characters, too.<br>In delphi something like AddImageFromFile(WideString(Edit1.Text),0) &lt;&gt; 0 could work ...<br><br>Cheers, Ingo<br><br>]]>
   </description>
   <pubDate>Sun, 31 Jan 2010 13:37:28 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/file-path_topic1330_post6087.html#6087</guid>
  </item> 
  <item>
   <title><![CDATA[File Path : Hello everybody!  I use QuickPDF...]]></title>
   <link>http://www.quickpdf.org/forum/file-path_topic1330_post6086.html#6086</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1231">mingoal</a><br /><strong>Subject:</strong> 1330<br /><strong>Posted:</strong> 31 Jan 10 at 10:35AM<br /><br /><DIV>Hello everybody!</DIV><DIV>&nbsp;</DIV><DIV>I use QuickPDF to generate pdf, but I find that it does not work as I thought when I pass a string contains characters to functions which need a path as parameter, such as AddImageFromFile(), SavetoFile() etc.</DIV><DIV>&nbsp;</DIV><DIV>For example:</DIV><DIV>&nbsp; if(m_docQPDF.AddImageFromFile("C:\Documents and Settings\mingoal\桌面\map.bmp",0) != 0)</DIV><DIV>{</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp; AfxMessageBox("Quick PDF Load Image Failed! ");</DIV><DIV>}</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;Can somebody help me to solve this promble ,or give me some hints ?</DIV><DIV>&nbsp;</DIV><DIV>Thanks in advance !</DIV><DIV>&nbsp;</DIV><DIV>Mingoal</DIV>]]>
   </description>
   <pubDate>Sun, 31 Jan 2010 10:35:59 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/file-path_topic1330_post6086.html#6086</guid>
  </item> 
 </channel>
</rss>