<?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 : access violations merging PDFs</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 : access violations merging PDFs]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 13 Jun 2026 15:12:18 +0000</pubDate>
  <lastBuildDate>Mon, 16 May 2016 13:16:22 +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=3326</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[access violations merging PDFs : thanks, i&amp;#039;ll try that and...]]></title>
   <link>http://www.quickpdf.org/forum/access-violations-merging-pdfs_topic3326_post13265.html#13265</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2871">pdsdev</a><br /><strong>Subject:</strong> 3326<br /><strong>Posted:</strong> 16 May 16 at 1:16PM<br /><br />thanks, i'll try that and see if it makes a difference.<div>sal</div>]]>
   </description>
   <pubDate>Mon, 16 May 2016 13:16:22 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/access-violations-merging-pdfs_topic3326_post13265.html#13265</guid>
  </item> 
  <item>
   <title><![CDATA[access violations merging PDFs : Here were some problems in the...]]></title>
   <link>http://www.quickpdf.org/forum/access-violations-merging-pdfs_topic3326_post13262.html#13262</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 3326<br /><strong>Posted:</strong> 12 May 16 at 6:21PM<br /><br />Here were some problems in the fast regarding MergeFileList but that the pdf-specs-version shall be the reason???<div>Anyway i'm asking me what can be the sense of different encryptions if it's all merged together?</div><div>So before merging a pdf you should reset the encryption:</div><div><div>If ( QP.EncryptionStatus &gt; 0 ) Then</div><div>&nbsp; &nbsp; &nbsp;QP.Decrypt;</div></div><div><br></div><div><br></div>]]>
   </description>
   <pubDate>Thu, 12 May 2016 18:21:53 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/access-violations-merging-pdfs_topic3326_post13262.html#13262</guid>
  </item> 
  <item>
   <title><![CDATA[access violations merging PDFs : here&amp;#039;s a bit more info -as...]]></title>
   <link>http://www.quickpdf.org/forum/access-violations-merging-pdfs_topic3326_post13260.html#13260</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2871">pdsdev</a><br /><strong>Subject:</strong> 3326<br /><strong>Posted:</strong> 11 May 16 at 10:55PM<br /><br />here's a bit more info -&nbsp;<div>as long as the &nbsp; first &nbsp; document isn't a 1.3 -</div><div>it appears that i can include as many 1.3s that i want -&nbsp;</div><div><br></div>]]>
   </description>
   <pubDate>Wed, 11 May 2016 22:55:35 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/access-violations-merging-pdfs_topic3326_post13260.html#13260</guid>
  </item> 
  <item>
   <title><![CDATA[access violations merging PDFs : it appears the code works fine...]]></title>
   <link>http://www.quickpdf.org/forum/access-violations-merging-pdfs_topic3326_post13259.html#13259</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2871">pdsdev</a><br /><strong>Subject:</strong> 3326<br /><strong>Posted:</strong> 11 May 16 at 10:49PM<br /><br />it appears the code works fine - ugly as it might be...&nbsp;<div>i can merge as many PDFs as i like of&nbsp;%PDF-1.4 or &nbsp;<span style="line-height: 16.8px;">&nbsp;%PDF-1.5</span></div><div>but no more than 2 of &nbsp;%PDF-1.3 &nbsp;- which appears to corrupt the</div><div>instance and cause access violations. &nbsp;</div><div><br></div><div>they display fine and i can add annotations and post text to them&nbsp;</div><div>but not merge them.&nbsp;</div><div><br></div><div>guess we can't be too sure the problem isn't in the lib.</div><div><br></div><div>any suggestions?&nbsp;</div><div><br></div>]]>
   </description>
   <pubDate>Wed, 11 May 2016 22:49:34 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/access-violations-merging-pdfs_topic3326_post13259.html#13259</guid>
  </item> 
  <item>
   <title><![CDATA[access violations merging PDFs : Hi,first i&amp;#039;ve thought i shouldn&amp;#039;t...]]></title>
   <link>http://www.quickpdf.org/forum/access-violations-merging-pdfs_topic3326_post13258.html#13258</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 3326<br /><strong>Posted:</strong> 11 May 16 at 9:34PM<br /><br />Hi,<div><br></div><div>first i've thought i shouldn't waste my free time here but ...&nbsp;</div><div><div>Here's a sample from Wilbur:</div><div>http://www.quickpdf.org/forum/problem-with-mergefilelistfast-in-delphi_topic3309_post13174.html?KW=MergeFileListFast#13174</div><div>Here's another sample:</div><div>http://www.quickpdf.org/forum/how-to-use-this-function_topic2087.html</div><div>Something relevant from the kb:</div><div>http://www.debenu.com/kb/merge-pdf-files-together-programmatically/</div><div>On page 28/29 of the developer guide you'll find a working sample, too.</div><div><br></div><div>But first you should clean and restructure your code ;-)</div></div><div>The functionality is an old one - so you can be sure that the prob isn't the lib.</div><div>To find the prob you should always look what's the content of your variables.</div><div>After each call you should check if the call was okay or not.</div><div>Additionally there's the function LastErrorCode. ... A lot you can do ...</div><div><br></div>]]>
   </description>
   <pubDate>Wed, 11 May 2016 21:34:21 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/access-violations-merging-pdfs_topic3326_post13258.html#13258</guid>
  </item> 
  <item>
   <title><![CDATA[access violations merging PDFs : that was a wasted post - i told...]]></title>
   <link>http://www.quickpdf.org/forum/access-violations-merging-pdfs_topic3326_post13257.html#13257</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2871">pdsdev</a><br /><strong>Subject:</strong> 3326<br /><strong>Posted:</strong> 11 May 16 at 9:22PM<br /><br /><div>that was a wasted post - i told you it fails the first time with more than 2 files in the list.</div><span style="line-height: 1.4;">before i ever get to the free. &nbsp;i just added that it also fails the second time through hoping that might</span><div>give you more info.<br><div><br><div>i step through it and each part executes til the merge - then access viol.</div><div>when i test the 2 passes - it does do the free. doesn't matter.</div><div>is there some kind of clear or release that i need to do??</div><div>&nbsp;</div><div>is there any kind of restriction on the file list - they are all fully qualified file names (including the directories).</div><div><br></div></div></div><div>sal</div><div><br></div>]]>
   </description>
   <pubDate>Wed, 11 May 2016 21:22:13 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/access-violations-merging-pdfs_topic3326_post13257.html#13257</guid>
  </item> 
  <item>
   <title><![CDATA[access violations merging PDFs : Hi,it&amp;#039;s not easy to read...]]></title>
   <link>http://www.quickpdf.org/forum/access-violations-merging-pdfs_topic3326_post13256.html#13256</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 3326<br /><strong>Posted:</strong> 11 May 16 at 9:12PM<br /><br />Hi,<div><br></div><div>it's not easy to read your code...</div><div>If you don't select an initial file you'll leave the routine without a free on dqpl.</div><div>Access violation means that your code has still access to objects when you start it a second time.</div><div>You should use a try...finally...end. In finally you should post your free.</div><div><br></div>]]>
   </description>
   <pubDate>Wed, 11 May 2016 21:12:47 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/access-violations-merging-pdfs_topic3326_post13256.html#13256</guid>
  </item> 
  <item>
   <title><![CDATA[access violations merging PDFs : seems i can use MergeList or MergeListFast...]]></title>
   <link>http://www.quickpdf.org/forum/access-violations-merging-pdfs_topic3326_post13254.html#13254</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2871">pdsdev</a><br /><strong>Subject:</strong> 3326<br /><strong>Posted:</strong> 11 May 16 at 8:42PM<br /><br />seems i can use MergeList or MergeListFast for 2 files but when i add a third file i get an access violation.<div>it also fails the second time i call the procedure even with 2 files.&nbsp;</div><div>basically, i get 1 call - for 2 files only. &nbsp;3 files on the first call or a 2nd call fails.</div><div>and it only AVs on the actual Merge call...</div><div><br></div><div>any ideas would be appreciated...</div><div><br></div><div>btw - i get the same errors trying to use the activeX component -&nbsp;</div><div>merge 2 files ok, 2nd merge fails.</div><div><br></div><div>here's my code...</div><div><br></div><div><div style="line-height: 16.8px; : rgb251, 251, 253;">procedure TMainForm.Merge1Click(Sender: TObject);</div><div style="line-height: 16.8px; : rgb251, 251, 253;">var</div><div style="line-height: 16.8px; : rgb251, 251, 253;">done : boolean;</div><div style="line-height: 16.8px; : rgb251, 251, 253;">fn1, fn2, ftmp, savename, listname :string;</div><div style="line-height: 16.8px; : rgb251, 251, 253;">zz, i, ures : Integer;</div><div style="line-height: 16.8px; : rgb251, 251, 253;">dqpl : TDebenuPDFLibrary1212;</div><div style="line-height: 16.8px; : rgb251, 251, 253;">begin</div><div style="line-height: 16.8px; : rgb251, 251, 253;"><br></div><div style="line-height: 16.8px; : rgb251, 251, 253;">savedlg.Title := 'Enter Your Save File Name';</div><div style="line-height: 16.8px; : rgb251, 251, 253;">savedlg.Execute;</div><div style="line-height: 16.8px; : rgb251, 251, 253;">savename := savedlg.FileName;</div><div style="line-height: 16.8px; : rgb251, 251, 253;">if savename = '' then exit;</div><div style="line-height: 16.8px; : rgb251, 251, 253;">if pos('.PDF',Uppercase(savename)) = 0 then</div><div style="line-height: 16.8px; : rgb251, 251, 253;">&nbsp; &nbsp;savename := savename +'.PDF';</div><div style="line-height: 16.8px; : rgb251, 251, 253;"><br></div><div style="line-height: 16.8px; : rgb251, 251, 253;"><br></div><div style="line-height: 16.8px; : rgb251, 251, 253;">// open file - get first file</div><div style="line-height: 16.8px; : rgb251, 251, 253;">opendlg.Title := 'Select your initial PDF file to merge ';</div><div style="line-height: 16.8px; : rgb251, 251, 253;">opendlg.execute;</div><div style="line-height: 16.8px; : rgb251, 251, 253;">fn1 := opendlg.FileName;</div><div style="line-height: 16.8px; : rgb251, 251, 253;">if fn1='' then exit;</div><div style="line-height: 16.8px; : rgb251, 251, 253;">listname:= 'mergeList';</div><div style="line-height: 16.8px; : rgb251, 251, 253;"><br></div><div style="line-height: 16.8px; : rgb251, 251, 253;">dqpl := TDebenuPDFLibrary1212.Create();</div><div style="line-height: 16.8px; : rgb251, 251, 253;">ures:= dqpl.UnlockKey('key here');</div><div style="line-height: 16.8px; : rgb251, 251, 253;"><br></div><div style="line-height: 16.8px; : rgb251, 251, 253;">if ures = 1 then begin</div><div style="line-height: 16.8px; : rgb251, 251, 253;"><br></div><div style="line-height: 16.8px; : rgb251, 251, 253;"><br></div><div style="line-height: 16.8px; : rgb251, 251, 253;">&nbsp; &nbsp; DQPL.ClearFileList(listname);</div><div style="line-height: 16.8px; : rgb251, 251, 253;">&nbsp; &nbsp; DQPL.AddToFileList(listname,fn1);</div><div style="line-height: 16.8px; : rgb251, 251, 253;"><br></div><div style="line-height: 16.8px; : rgb251, 251, 253;"><br></div><div style="line-height: 16.8px; : rgb251, 251, 253;">&nbsp; &nbsp; done := false;</div><div style="line-height: 16.8px; : rgb251, 251, 253;"><br></div><div style="line-height: 16.8px; : rgb251, 251, 253;">&nbsp; &nbsp; // loop</div><div style="line-height: 16.8px; : rgb251, 251, 253;">&nbsp; &nbsp; opendlg.Title := 'Select the PDF file to append ';</div><div style="line-height: 16.8px; : rgb251, 251, 253;"><br></div><div style="line-height: 16.8px; : rgb251, 251, 253;">&nbsp; &nbsp; while not done &nbsp;do begin</div><div style="line-height: 16.8px; : rgb251, 251, 253;">&nbsp; &nbsp; &nbsp; &nbsp; // open file get next</div><div style="line-height: 16.8px; : rgb251, 251, 253;">&nbsp; &nbsp; &nbsp; &nbsp; opendlg.FileName :='';</div><div style="line-height: 16.8px; : rgb251, 251, 253;">&nbsp; &nbsp; &nbsp; &nbsp; opendlg.Execute;</div><div style="line-height: 16.8px; : rgb251, 251, 253;">&nbsp; &nbsp; &nbsp; &nbsp; opendlg.Title := 'Select the PDF next file to append ';</div><div style="line-height: 16.8px; : rgb251, 251, 253;"><br></div><div style="line-height: 16.8px; : rgb251, 251, 253;">&nbsp; &nbsp; &nbsp; &nbsp; fn2:= opendlg.FileName;</div><div style="line-height: 16.8px; : rgb251, 251, 253;"><br></div><div style="line-height: 16.8px; : rgb251, 251, 253;">&nbsp; &nbsp; &nbsp; &nbsp; DQPL.AddToFileList(listname,fn2);</div><div style="line-height: 16.8px; : rgb251, 251, 253;"><br></div><div style="line-height: 16.8px; : rgb251, 251, 253;">&nbsp; &nbsp; &nbsp; &nbsp; // continue/done</div><div style="line-height: 16.8px; : rgb251, 251, 253;">&nbsp; &nbsp; &nbsp; &nbsp; if MessageDlg( 'Done?' ,mtconfirmation,&#091;mbYes,mbNo&#093;,0) = mrYes then Done := true;</div><div style="line-height: 16.8px; : rgb251, 251, 253;">&nbsp; &nbsp; end;</div><div style="line-height: 16.8px; : rgb251, 251, 253;"><br></div><div style="line-height: 16.8px; : rgb251, 251, 253;">&nbsp; &nbsp; DQPL.MergeFileListFast(listname,savename);</div><div style="line-height: 16.8px; : rgb251, 251, 253;"><br></div><div style="line-height: 16.8px; : rgb251, 251, 253;">&nbsp; &nbsp; dqpl.free;</div><div style="line-height: 16.8px; : rgb251, 251, 253;"><br></div><div style="line-height: 16.8px; : rgb251, 251, 253;">end;</div><div style="line-height: 16.8px; : rgb251, 251, 253;"><br></div><div style="line-height: 16.8px; : rgb251, 251, 253;"><br></div><div style="line-height: 16.8px; : rgb251, 251, 253;">end;</div></div><div><br></div>]]>
   </description>
   <pubDate>Wed, 11 May 2016 20:42:51 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/access-violations-merging-pdfs_topic3326_post13254.html#13254</guid>
  </item> 
 </channel>
</rss>