<?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 : loadFromString results in 401 error</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 : loadFromString results in 401 error]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 25 Jun 2026 08:33:28 +0000</pubDate>
  <lastBuildDate>Wed, 04 Jun 2014 07:14: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=2907</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[loadFromString results in 401 error : Mr Popup,You will need do some...]]></title>
   <link>http://www.quickpdf.org/forum/loadfromstring-results-in-401-error_topic2907_post11762.html#11762</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1483">AndrewC</a><br /><strong>Subject:</strong> 2907<br /><strong>Posted:</strong> 04 Jun 14 at 7:14AM<br /><br /><div><br></div><div>Mr Popup,</div><div><br></div>You will need do some research and see how strings and arrays work in Jade. &nbsp;The code examples show how the C# wrapper loads and saves strings using the DLL calls.<div><br></div><div>Andrew.</div>]]>
   </description>
   <pubDate>Wed, 04 Jun 2014 07:14:14 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/loadfromstring-results-in-401-error_topic2907_post11762.html#11762</guid>
  </item> 
  <item>
   <title><![CDATA[loadFromString results in 401 error : Thank you Andrew. I am not sure...]]></title>
   <link>http://www.quickpdf.org/forum/loadfromstring-results-in-401-error_topic2907_post11754.html#11754</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=193">MrPopup</a><br /><strong>Subject:</strong> 2907<br /><strong>Posted:</strong> 31 May 14 at 9:45PM<br /><br />Thank you Andrew. I am not sure how I would use this, but appreciate the effort.]]>
   </description>
   <pubDate>Sat, 31 May 2014 21:45:25 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/loadfromstring-results-in-401-error_topic2907_post11754.html#11754</guid>
  </item> 
  <item>
   <title><![CDATA[loadFromString results in 401 error : MrPopup,Here is the C# wrapper...]]></title>
   <link>http://www.quickpdf.org/forum/loadfromstring-results-in-401-error_topic2907_post11753.html#11753</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1483">AndrewC</a><br /><strong>Subject:</strong> 2907<br /><strong>Posted:</strong> 30 May 14 at 10:13AM<br /><br /><div>MrPopup,</div><div><br></div><div>Here is the C# wrapper code for LoadFromString and SaveToString ? &nbsp;It should be helpful with porting it to Jade. &nbsp;The C# wrapper is calling the DLL also.</div><div><br></div><div>Andrew.</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; public int LoadFromString(byte&#091;&#093; Source, string Password)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (dll == null) return 0;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; GCHandle gch = GCHandle.Alloc(Source, GCHandleType.Pinned);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; IntPtr bufferID = dll.DebenuPDFLibraryCreateBuffer(instanceID, Source.Length);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; dll.DebenuPDFLibraryAddToBuffer(instanceID, bufferID, gch.AddrOfPinnedObject(), Source.Length);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int result = dll.DebenuPDFLibraryLoadFromString(instanceID, bufferID, Password);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; dll.DebenuPDFLibraryReleaseBuffer(instanceID, bufferID);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; gch.Free();</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return result;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</div>&nbsp; &nbsp; &nbsp; &nbsp; }<div><br></div><div><div>&nbsp; &nbsp; &nbsp; &nbsp; public byte&#091;&#093; SaveToString()</div><div>&nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (dll == null) return new byte&#091;0&#093;;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; IntPtr data = dll.DebenuPDFLibrarySaveToString(instanceID);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int size = dll.DebenuPDFLibraryAnsiStringResultLength(instanceID);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; byte&#091;&#093; result = new byte&#091;size&#093;;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Marshal.Copy(data, result, 0, size);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return result;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; }</div></div><div><br></div>]]>
   </description>
   <pubDate>Fri, 30 May 2014 10:13:28 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/loadfromstring-results-in-401-error_topic2907_post11753.html#11753</guid>
  </item> 
  <item>
   <title><![CDATA[loadFromString results in 401 error : I note that the DPLLoadFromStringA...]]></title>
   <link>http://www.quickpdf.org/forum/loadfromstring-results-in-401-error_topic2907_post11752.html#11752</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=193">MrPopup</a><br /><strong>Subject:</strong> 2907<br /><strong>Posted:</strong> 29 May 14 at 10:17PM<br /><br />I note that the DPLLoadFromStringA construct makes use of both char (ansi) and w_char (unicode) data types. &nbsp;<div>No other constructs that I have used mix the two types.</div><div>Thanks.</div>]]>
   </description>
   <pubDate>Thu, 29 May 2014 22:17:31 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/loadfromstring-results-in-401-error_topic2907_post11752.html#11752</guid>
  </item> 
  <item>
   <title><![CDATA[loadFromString results in 401 error : QuickPDF Library ResponsesDPLLoadFromFileA...]]></title>
   <link>http://www.quickpdf.org/forum/loadfromstring-results-in-401-error_topic2907_post11751.html#11751</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=193">MrPopup</a><br /><strong>Subject:</strong> 2907<br /><strong>Posted:</strong> 29 May 14 at 9:47PM<br /><br /><div><b><u>QuickPDF Library Responses</u></b></div><div>DPLLoadFromFileA response:<span ="Apple-tab-span" style="white-space:pre">	</span>1</div><div>DPLPageCount response:<span ="Apple-tab-span" style="white-space:pre">	</span>4</div><div>DPLDeletePages response:<span ="Apple-tab-span" style="white-space:pre">	</span>1</div><div>DPLPageCount response:<span ="Apple-tab-span" style="white-space:pre">	</span>1</div><div>DPLSelectPage response: <span ="Apple-tab-span" style="white-space:pre">	</span>1</div><div>String length:<span ="Apple-tab-span" style="white-space:pre">				</span>219</div><div>LoadFronStringA response:<span ="Apple-tab-span" style="white-space:pre">	</span>0</div><div>LastErrorCode response:<span ="Apple-tab-span" style="white-space:pre">		</span>401</div><div>SaveToFile response:<span ="Apple-tab-span" style="white-space:pre">		</span>1</div>]]>
   </description>
   <pubDate>Thu, 29 May 2014 21:47:20 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/loadfromstring-results-in-401-error_topic2907_post11751.html#11751</guid>
  </item> 
  <item>
   <title><![CDATA[loadFromString results in 401 error : I think the problem is before...]]></title>
   <link>http://www.quickpdf.org/forum/loadfromstring-results-in-401-error_topic2907_post11750.html#11750</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 2907<br /><strong>Posted:</strong> 29 May 14 at 9:24PM<br /><br />I think the problem is before the LoadFromString.<div>You should check each returning value.</div><div>What about the returning value of DeletePages?</div><div>It should be the number of the remaining pages.</div><div>I don't know Jade... the string content should be Ansi...</div><div><br></div>]]>
   </description>
   <pubDate>Thu, 29 May 2014 21:24:34 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/loadfromstring-results-in-401-error_topic2907_post11750.html#11750</guid>
  </item> 
  <item>
   <title><![CDATA[loadFromString results in 401 error : ftp site219.89.207.2US:	quickpdfPW	pdf1004Thank...]]></title>
   <link>http://www.quickpdf.org/forum/loadfromstring-results-in-401-error_topic2907_post11749.html#11749</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=193">MrPopup</a><br /><strong>Subject:</strong> 2907<br /><strong>Posted:</strong> 29 May 14 at 8:50PM<br /><br />ftp site<div>219.89.207.2</div><div>US:<span ="Apple-tab-span" style="white-space:pre">	</span>quickpdf</div><div>PW<span ="Apple-tab-span" style="white-space:pre">	</span>pdf1004</div><div><br></div><div>Thank you.</div><div><br></div>]]>
   </description>
   <pubDate>Thu, 29 May 2014 20:50:06 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/loadfromstring-results-in-401-error_topic2907_post11749.html#11749</guid>
  </item> 
  <item>
   <title><![CDATA[loadFromString results in 401 error :  is it okay with another dll-version?If...]]></title>
   <link>http://www.quickpdf.org/forum/loadfromstring-results-in-401-error_topic2907_post11746.html#11746</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 2907<br /><strong>Posted:</strong> 28 May 14 at 8:27AM<br /><br />is it okay with another dll-version?<div>If not: Please upload the pdf anywhere</div><div>and post the link - so we can check it.</div><div>&nbsp;</div><div>Cheers, Ingo</div><div>&nbsp;</div>]]>
   </description>
   <pubDate>Wed, 28 May 2014 08:27:52 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/loadfromstring-results-in-401-error_topic2907_post11746.html#11746</guid>
  </item> 
  <item>
   <title><![CDATA[loadFromString results in 401 error : Good morning,Using DLL version...]]></title>
   <link>http://www.quickpdf.org/forum/loadfromstring-results-in-401-error_topic2907_post11744.html#11744</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=193">MrPopup</a><br /><strong>Subject:</strong> 2907<br /><strong>Posted:</strong> 27 May 14 at 11:04PM<br /><br />Good morning,<div><br></div><div>Using DLL version 10. &nbsp;Have tried both DPLLoadFromString and DPLLOadFromStringA. Same problem. &nbsp;Jade development environment is being used. &nbsp;This is the obny call I have had an issue with.</div><div><br></div><div>The code is:</div><div><br></div><div><div>vars</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>qp<span ="Apple-tab-span" style="white-space:pre">	</span>:<span ="Apple-tab-span" style="white-space:pre">	</span>PDF;</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>st<span ="Apple-tab-span" style="white-space:pre">	</span>:<span ="Apple-tab-span" style="white-space:pre">	</span>String;</div><div>begin</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>create qp transient;<span ="Apple-tab-span" style="white-space:pre">						</span>//create and unlock library</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>qp.loadFromFile("c:\temp\seka.pdf","");<span ="Apple-tab-span" style="white-space:pre">		</span>//import existing pdf (4pages)</div><div><span ="Apple-tab-span" style="line-height: 1.4; white-space: pre;">	</span><span style="line-height: 1.4;">qp.deletePages(2,qp.pageCount-1);<span ="Apple-tab-span" style="white-space:pre">		</span>//delete all pages except page 1</span></div><div><span ="Apple-tab-span" style="line-height: 1.4; white-space: pre;">	</span><span style="line-height: 1.4;">qp.selectPage(1);<span ="Apple-tab-span" style="white-space:pre">						</span>//select page 1</span></div><div><span ="Apple-tab-span" style="white-space:pre">	</span>st := qp.saveToString;<span ="Apple-tab-span" style="white-space:pre">					</span>//get pdf as a string and hold</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>write st.length;<span ="Apple-tab-span" style="white-space:pre">						</span>//check length of string</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>write st;<span ="Apple-tab-span" style="white-space:pre">								</span>//display string</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>delete qp;<span ="Apple-tab-span" style="white-space:pre">							</span>//delete and release library</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>create qp transient;<span ="Apple-tab-span" style="white-space:pre">						</span>//create and unlock library</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>qp.loadFromString(st,"");<span ="Apple-tab-span" style="white-space:pre">					</span>//load pdf from held string</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>write&nbsp;qp.lastErrorCode;<span ="Apple-tab-span" style="white-space:pre">					</span>//display error code</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>qp.saveToFile("c:\temp\test_save.pdf");<span ="Apple-tab-span" style="white-space:pre">		</span>//save new document as a pdf</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>delete qp;<span ="Apple-tab-span" style="white-space:pre">							</span>//delete and release library</div><div><span style="line-height: 1.4;">end;</span></div></div><div><span style="line-height: 1.4;"><br></span></div><div><span style="line-height: 1.4;">All calls are successful except the loadFromString call.</span></div><div><span style="line-height: 1.4;"><br></span></div><div><span style="line-height: 1.4;">Thank you.</span></div>]]>
   </description>
   <pubDate>Tue, 27 May 2014 23:04:26 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/loadfromstring-results-in-401-error_topic2907_post11744.html#11744</guid>
  </item> 
 </channel>
</rss>