<?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 : DPLSelectDocument not selecting any document</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 : DPLSelectDocument not selecting any document]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 14 Apr 2026 18:50:11 +0000</pubDate>
  <lastBuildDate>Fri, 14 Mar 2014 01:58:28 +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=2844</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[DPLSelectDocument not selecting any document : Hugetto,The length of the binary...]]></title>
   <link>http://www.quickpdf.org/forum/dplselectdocument-not-selecting-any-document_topic2844_post11557.html#11557</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1483">AndrewC</a><br /><strong>Subject:</strong> 2844<br /><strong>Posted:</strong> 14 Mar 14 at 1:58AM<br /><br /><div>Hugetto,</div><div><br></div>The length of the binary data returned from the library can be obtained using DPLAnsiStringResultLength(); &nbsp;You will need to call this directly after calling&nbsp;<span style=": rgb251, 251, 253;">DPLRenderPageToFile.</span><div><br></div><div>All image will return binary data including NULL characters ('\0') and so strlen() will not work.</div><div><br></div><div>Andrew.<br><div><br></div><div><br></div></div>]]>
   </description>
   <pubDate>Fri, 14 Mar 2014 01:58:28 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/dplselectdocument-not-selecting-any-document_topic2844_post11557.html#11557</guid>
  </item> 
  <item>
   <title><![CDATA[DPLSelectDocument not selecting any document : I can render to a png file using...]]></title>
   <link>http://www.quickpdf.org/forum/dplselectdocument-not-selecting-any-document_topic2844_post11552.html#11552</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2537">hugetto</a><br /><strong>Subject:</strong> 2844<br /><strong>Posted:</strong> 11 Mar 14 at 1:34PM<br /><br />I can render to a png file using this function:<br /><br />DPLRenderPageToFile(InstanceID, 64, 1, 5, L"C:\\Users\\Hug\\Desktop\\example.png");<br /><br />But I can't using the other function.<br /><br />I did strlen on the char* ret and i get 8 which is the "‰PNG\r\n\x1a\n" string.<br /><br />I could use the render to file function, but I would prefer to use the other one if possible.<br />]]>
   </description>
   <pubDate>Tue, 11 Mar 2014 13:34:50 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/dplselectdocument-not-selecting-any-document_topic2844_post11552.html#11552</guid>
  </item> 
  <item>
   <title><![CDATA[DPLSelectDocument not selecting any document : I tried other functions like on...]]></title>
   <link>http://www.quickpdf.org/forum/dplselectdocument-not-selecting-any-document_topic2844_post11551.html#11551</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2537">hugetto</a><br /><strong>Subject:</strong> 2844<br /><strong>Posted:</strong> 11 Mar 14 at 1:22PM<br /><br />I tried other functions like on the turorial, and they work propperly:<br /><br />Ex:<br />DPLDrawText(InstanceID, 100, 500, L”Hello world”);<br />DPLSaveToFile(InstanceID, L”C:\\Docs\\HelloFromLIB.pdf”);<br />DPLReleaseLibrary(InstanceID);<br />]]>
   </description>
   <pubDate>Tue, 11 Mar 2014 13:22:14 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/dplselectdocument-not-selecting-any-document_topic2844_post11551.html#11551</guid>
  </item> 
  <item>
   <title><![CDATA[DPLSelectDocument not selecting any document : I&amp;#039;ve downloaded today the...]]></title>
   <link>http://www.quickpdf.org/forum/dplselectdocument-not-selecting-any-document_topic2844_post11550.html#11550</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2537">hugetto</a><br /><strong>Subject:</strong> 2844<br /><strong>Posted:</strong> 11 Mar 14 at 1:10PM<br /><br />I've downloaded today the 2013 version but I still got this output.]]>
   </description>
   <pubDate>Tue, 11 Mar 2014 13:10:34 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/dplselectdocument-not-selecting-any-document_topic2844_post11550.html#11550</guid>
  </item> 
  <item>
   <title><![CDATA[DPLSelectDocument not selecting any document : Hi Ingo, I can open my pdf with...]]></title>
   <link>http://www.quickpdf.org/forum/dplselectdocument-not-selecting-any-document_topic2844_post11549.html#11549</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2537">hugetto</a><br /><strong>Subject:</strong> 2844<br /><strong>Posted:</strong> 11 Mar 14 at 7:47AM<br /><br />Hi Ingo, <br /><br />I can open my pdf with a pdf viewer.<br />And I put <br /><br />err = DPLLastErrorCode(InstanceID);<br /><br />After every function, and always return 0.<br /><br />This is the function I put all together:<br /><br />void showpdf()<br />{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;static int hug3 = 0;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;static int InstanceID = 0;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (hug3 == 0)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;DEBENUPDFLIBRARYLIB1012_DllMain(GetModuleHandle(NULL), DLL_PROCESS_ATTACH, NULL);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;int err = DPLLastErrorCode(InstanceID);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;InstanceID = DPLCreateLibrary();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;err = DPLLastErrorCode(InstanceID);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (DPLUnlockKey(InstanceID, L"your_private_licensekey") == 1)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; err = DPLLastErrorCode(InstanceID);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //int DocumentID = DPLDAOpenFile(InstanceID, L"C:\\Users\\Hug\\Desktop\\example.pdf", nullptr);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int DocumentID = DPLLoadFromFile(InstanceID, L"C:\\Users\\Hug\\Desktop\\example.pdf", nullptr);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //int m = DPLSelectDocument(InstanceID, DocumentID);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; err = DPLLastErrorCode(InstanceID);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int lDoc = DPLSelectedDocument(InstanceID);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; err = DPLLastErrorCode(InstanceID);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; char *ret = DPLRenderPageToString(InstanceID, 24, 1, 5);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; err = DPLLastErrorCode(InstanceID);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; hug3 = true;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />}<br /><br /><br /><br />Here are the debug output variables<br /><br />DocumentID&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1476395009&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;int<br />lDoc&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1476395008&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;int<br />ret&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0x06493688 "‰PNG\r\n\x1a\n"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;char *<br />err&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;int<br />InstanceID&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;105836192&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;int<br />hug3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;int<br /><br /><br />Thank you<br /><span style="font-size:10px"><br /><br />Edited by hugetto - 11 Mar 14 at 1:18PM</span>]]>
   </description>
   <pubDate>Tue, 11 Mar 2014 07:47:59 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/dplselectdocument-not-selecting-any-document_topic2844_post11549.html#11549</guid>
  </item> 
  <item>
   <title><![CDATA[DPLSelectDocument not selecting any document : Hi,i don&amp;#039;t know what&amp;#039;s...]]></title>
   <link>http://www.quickpdf.org/forum/dplselectdocument-not-selecting-any-document_topic2844_post11548.html#11548</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 2844<br /><strong>Posted:</strong> 10 Mar 14 at 7:18PM<br /><br />Hi,<div><br></div><div>i don't know what's wrong in your special issue.</div><div>What you should check is:</div><div>Is it possible to open the pdf with a good reader like Foxit?</div><div>At second you should use LastErrorCode (after each function line).</div><div>Perhaps this function will tell you what's going wrong.</div><div><br></div><div>Cheers and welcome here,</div><div>Ingo</div><div><br></div>]]>
   </description>
   <pubDate>Mon, 10 Mar 2014 19:18:39 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/dplselectdocument-not-selecting-any-document_topic2844_post11548.html#11548</guid>
  </item> 
  <item>
   <title><![CDATA[DPLSelectDocument not selecting any document : Thank you for this information,...]]></title>
   <link>http://www.quickpdf.org/forum/dplselectdocument-not-selecting-any-document_topic2844_post11543.html#11543</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2537">hugetto</a><br /><strong>Subject:</strong> 2844<br /><strong>Posted:</strong> 05 Mar 14 at 7:30AM<br /><br />Thank you for this information, but i've got the same results when I render the page with the DPLRenderPageToString function<br /><br /><br />int DocumentID = DPLLoadFromFile(InstanceID, L"C:\\example.pdf", nullptr);<br />char *ret = DPLRenderPageToString(InstanceID, 24, 1, 5);<br /><br /><br />The DocumentID is 1<br />The *ret value is "‰PNG\r\n\x1a\n" using the DPLLoadFromFile function and the DPLDAOpenFileReadOnly function.<br /><br />What I'm doing wrong?<br /><br />Thank you]]>
   </description>
   <pubDate>Wed, 05 Mar 2014 07:30:29 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/dplselectdocument-not-selecting-any-document_topic2844_post11543.html#11543</guid>
  </item> 
  <item>
   <title><![CDATA[DPLSelectDocument not selecting any document : Hello,You are mixing DA functions...]]></title>
   <link>http://www.quickpdf.org/forum/dplselectdocument-not-selecting-any-document_topic2844_post11542.html#11542</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1483">AndrewC</a><br /><strong>Subject:</strong> 2844<br /><strong>Posted:</strong> 05 Mar 14 at 2:45AM<br /><br />Hello,<div><br></div><div>You are mixing DA functions with non DA functions. &nbsp;The DA functions only work with other DA functions.</div><div><br></div><div>So if you change the following line from</div><div><br></div><div><span style=": rgb251, 251, 253;">&nbsp; int DocumentID = DPLDAOpenFileReadOnly(InstanceID, L"C:\\file.pdf", nullptr);</span></div><div><span style=": rgb251, 251, 253;"><br></span></div><div><span style=": rgb251, 251, 253;">to&nbsp;</span></div><div><span style=": rgb251, 251, 253;"><br></span></div><div><span style=": rgb251, 251, 253;">&nbsp; int ret = DPLLoadFromFile(</span><span style=": rgb251, 251, 253; line-height: 1.4;">InstanceID, L"C:\\file.pdf", nullptr);</span></div><div><span style=": rgb251, 251, 253; line-height: 1.4;">&nbsp; DocumentId = DQPLSelectedDocument(InstanceID);</span></div><div><span style=": rgb251, 251, 253; line-height: 1.4;"><br></span></div><div><span style=": rgb251, 251, 253; line-height: 1.4;">If ret = 1 then the file has loaded correctly.</span></div><div><span style=": rgb251, 251, 253; line-height: 1.4;"><br></span></div><div><span style=": rgb251, 251, 253; line-height: 1.4;">The ID's are handle numbers we use internally.</span></div><div><span style=": rgb251, 251, 253; line-height: 1.4;"><br></span></div><div><span style=": rgb251, 251, 253; line-height: 1.4;">Andrew.</span></div><div><span style=": rgb251, 251, 253; line-height: 1.4;"><br></span></div><div><br></div>]]>
   </description>
   <pubDate>Wed, 05 Mar 2014 02:45:44 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/dplselectdocument-not-selecting-any-document_topic2844_post11542.html#11542</guid>
  </item> 
  <item>
   <title><![CDATA[DPLSelectDocument not selecting any document : Hello, I&amp;#039;m trying the trial...]]></title>
   <link>http://www.quickpdf.org/forum/dplselectdocument-not-selecting-any-document_topic2844_post11539.html#11539</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2537">hugetto</a><br /><strong>Subject:</strong> 2844<br /><strong>Posted:</strong> 04 Mar 14 at 11:39AM<br /><br />Hello, I'm trying the trial version in C++ but i cannot Select any document.<br><br>This is the code I use:<br><br>DEBENUPDFLIBRARYLIB1012_DllMain(GetModuleHandle(NULL), DLL_PROCESS_ATTACH, NULL);<br>InstanceID = DPLCreateLibrary();<br>if (DPLUnlockKey(InstanceID, L"&lt;insert license key here&gt;") == 1)<br>{<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;int DocumentID = DPLDAOpenFileReadOnly(InstanceID, L"C:\\file.pdf", nullptr);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;int err = DPLLastErrorCode(InstanceID);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;int lSelected = DPLSelectDocument(InstanceID, DocumentID);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;int lOutDoc = DPLSelectedDocument(InstanceID);<br>}<br><br>This are the output variables:<br>InstanceID = 99020448<br>DocumentID = 1476395009<br>err = 0<br>lSelected  = 0 //which means have failed, but I don't know why it failed<br>lOutDoc = 1476395008  //Why it's the same number as DocumentID minus 1?<br><br>What's happening?<br><br>Thank you<span style="font-size:10px"><br /><br />Edited by AndrewC - 05 Mar 14 at 2:38AM</span>]]>
   </description>
   <pubDate>Tue, 04 Mar 2014 11:39:43 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/dplselectdocument-not-selecting-any-document_topic2844_post11539.html#11539</guid>
  </item> 
 </channel>
</rss>