<?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 : Problem with SETPDFAMode</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 : General Discussion : Problem with SETPDFAMode]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 04 May 2026 10:39:58 +0000</pubDate>
  <lastBuildDate>Fri, 07 Oct 2011 09:33:30 +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=1983</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[Problem with SETPDFAMode : Hi,anybody can help me?I can&amp;#039;t...]]></title>
   <link>http://www.quickpdf.org/forum/problem-with-setpdfamode_topic1983_post8455.html#8455</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1717">josepmz</a><br /><strong>Subject:</strong> 1983<br /><strong>Posted:</strong> 07 Oct 11 at 9:33AM<br /><br />Hi,<br><br>anybody can help me?<br>I can't create PDF/A documents in Visual Studio 2008 c++ with QuickPdfLibrary 8.11 o 8.12, it seems its ok, but the PDF/A is not created.<br><br>My sample code is on firts post.<br><br>Thanks!<br>]]>
   </description>
   <pubDate>Fri, 07 Oct 2011 09:33:30 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/problem-with-setpdfamode_topic1983_post8455.html#8455</guid>
  </item> 
  <item>
   <title><![CDATA[Problem with SETPDFAMode : Hi Ingo,My document is not PDF/A...]]></title>
   <link>http://www.quickpdf.org/forum/problem-with-setpdfamode_topic1983_post8436.html#8436</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1717">josepmz</a><br /><strong>Subject:</strong> 1983<br /><strong>Posted:</strong> 04 Oct 11 at 8:26AM<br /><br />Hi Ingo,<br><br>My document is not PDF/A beause I don't see legend on Acrobat Reader that says: <br>"The file you have opened complies with the PDF/A standard and has been opened read-only to prevent modificacion.<br><br>My code is based on samples at QuickPDF Library 8.11 console (2.11), on Document Management/Create PDF-A Document. When I run this sample, the PDF/A is correct, but when I run in my Visual Studio 2008 c++ project, it run but is not PDF/A compliance.<br><br>When I created this code on QPL console it works fine, and the PDF is PDF/A:<br><br>QP.SetPDFAMode(2);<br>QP.SetOrigin(1);<br>var fontID1 = QP.AddTrueTypeFont("Times New Roman", 1);<br>QP.SelectFont(fontID1);<br>QP.DrawText(25, 25, "This text was drawn using the DrawText function.");<br>QP.SaveToFile(GetOutputFolder() + "PDF-A_Document.pdf");<br>DisplayPDFReader(GetOutputFolder() + "PDF-A_Document.pdf");<br><br>thanks Ingo, any help would be apreciated.<br>]]>
   </description>
   <pubDate>Tue, 04 Oct 2011 08:26:12 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/problem-with-setpdfamode_topic1983_post8436.html#8436</guid>
  </item> 
  <item>
   <title><![CDATA[Problem with SETPDFAMode : Hi Josep!Who tells you that the...]]></title>
   <link>http://www.quickpdf.org/forum/problem-with-setpdfamode_topic1983_post8434.html#8434</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 1983<br /><strong>Posted:</strong> 03 Oct 11 at 10:34PM<br /><br />Hi Josep!<br><br>Who tells you that the resulting document isn't real PDF/A?<br>With AddTrueTypeFont you won't EMBED the font and<br>embedding the used fonts is necessary to get a PDF/A-document.<br><br>Cheers and welcome here,<br>Ingo<br><br>]]>
   </description>
   <pubDate>Mon, 03 Oct 2011 22:34:57 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/problem-with-setpdfamode_topic1983_post8434.html#8434</guid>
  </item> 
  <item>
   <title><![CDATA[Problem with SETPDFAMode :  Hello,I&amp;#039;m evaluating QuickPDFLibrary,...]]></title>
   <link>http://www.quickpdf.org/forum/problem-with-setpdfamode_topic1983_post8432.html#8432</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1717">josepmz</a><br /><strong>Subject:</strong> 1983<br /><strong>Posted:</strong> 03 Oct 11 at 11:16AM<br /><br />Hello,<br><br>I'm evaluating QuickPDFLibrary, I think that is a very good library. Great Joob.<br>I've problems with QuickPDFDLL0811.dll in C++ version (MS 2008);<br>When I try to use SETPDFAMode and save the document, the document is not PDF/A compliance.<br><br>Is any limitation with Evaluation Keys?<br><br>Any help wold be apreciated <img src="http://www.quickpdf.org/forum/smileys/smiley2.gif" border="0" alt="Wink" title="Wink" /><br><br>My code:<br><br>#include "stdafx.h"<br>#include "QuickPDFDLL0811.h"<br><br><br>std::wstring Utf8ToUtf16(const std::string &amp;s)<br>{<br>&nbsp;&nbsp;&nbsp; std::wstring ret;<br>&nbsp;&nbsp;&nbsp; int len = MultiByteToWideChar(CP_UTF8, 0, s.c_str(), s.length(), NULL, 0);<br>&nbsp;&nbsp;&nbsp; if (len &gt; 0)<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ret.resize(len);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MultiByteToWideChar(CP_UTF8, 0, s.c_str(), s.length(), const_cast&lt;wchar_t*&gt;(ret.c_str()), len);<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; return ret;<br>}<br><br>std::string Utf16ToUtf8(const std::wstring &amp;s)<br>{<br>&nbsp;&nbsp;&nbsp; std::string ret;<br>&nbsp;&nbsp;&nbsp; int len = WideCharToMultiByte(CP_UTF8, 0, s.c_str(), s.length(), NULL, 0, NULL, NULL);<br>&nbsp;&nbsp;&nbsp; if (len &gt; 0)<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ret.resize(len);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; WideCharToMultiByte(CP_UTF8, 0, s.c_str(), s.length(), const_cast&lt;char*&gt;(ret.c_str()), len, NULL, NULL);<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; return ret;<br>}<br><br>int _tmain(int argc, _TCHAR* argv&#091;&#093;)<br>{<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; QuickPDFDLL0811 QP(Utf8ToUtf16("QuickPDFDLL0811.dll"));<br>&nbsp;&nbsp;&nbsp; int iResult = QP.UnlockKey(Utf8ToUtf16("MyRegKey"));<br>&nbsp;&nbsp;&nbsp; QP.SetPDFAMode(2);<br>&nbsp;&nbsp;&nbsp; QP.SetOrigin(1);<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; int fontID1 = QP.AddTrueTypeFont(Utf8ToUtf16("Times New Roman"), 1);&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; QP.SelectFont(fontID1);<br><br>&nbsp;&nbsp;&nbsp; QP.DrawText(25, 25, Utf8ToUtf16("This text was drawn using the DrawText function."));<br>&nbsp;&nbsp;&nbsp; if(QP.SaveToFile(Utf8ToUtf16("PDF-A_Document.pdf"))==1)<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; _tprintf(_T("grabado\n"));<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; else<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; _tprintf(_T("no grabado\n"));<br>&nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp; return 0;<br>}<br><br><br><span style="font-size:10px"><br /><br />Edited by Ingo - 03 Oct 11 at 10:25PM</span>]]>
   </description>
   <pubDate>Mon, 03 Oct 2011 11:16:04 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/problem-with-setpdfamode_topic1983_post8432.html#8432</guid>
  </item> 
 </channel>
</rss>