<?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 : AppendToFile, incremental updates</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 : AppendToFile, incremental updates]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 05 Apr 2026 19:40:19 +0000</pubDate>
  <lastBuildDate>Sat, 11 Feb 2017 22:20:05 +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=3438</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[AppendToFile, incremental updates : if you wanna tell about an error...]]></title>
   <link>http://www.quickpdf.org/forum/appendtofile-incremental-updates_topic3438_post13670.html#13670</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 3438<br /><strong>Posted:</strong> 11 Feb 17 at 10:20PM<br /><br />if you wanna tell about an error this is the wrong place here...<div>Try the official support pages in this case.</div><div><br></div>]]>
   </description>
   <pubDate>Sat, 11 Feb 2017 22:20:05 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/appendtofile-incremental-updates_topic3438_post13670.html#13670</guid>
  </item> 
  <item>
   <title><![CDATA[AppendToFile, incremental updates : Hi,thanks for the replySorry,...]]></title>
   <link>http://www.quickpdf.org/forum/appendtofile-incremental-updates_topic3438_post13669.html#13669</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2931">mhnejmles</a><br /><strong>Subject:</strong> 3438<br /><strong>Posted:</strong> 10 Feb 17 at 5:58PM<br /><br /><div><font style=": rgb255, 255, 255;">Hi,</font></div><div><font style=": rgb255, 255, 255;">thanks for the reply</font></div><div><font style=": rgb255, 255, 255;"><br></font></div><div><font style=": rgb255, 255, 255;">Sorry, was working really late last night and I didn't have the strength to write everything down here. I am working with the 13.11 Delphi version of QuickPDFLibrary in Delphi Berlin 10.1.</font></div><div><br></div><div>I did go through the description and sample code based on the knowledge base topic about incremental updates to PDFs already.</div><div><br></div><div>I will elaborate more on the details....</div><div><br></div><div>So I basically copied the code structure from the sample. I was also trying to do some more with it but I came to the conclusion there might be a bug. So let's say I have a pdf file&nbsp;with&nbsp;a&nbsp;filepath. It's a simple pdf file I generated from a Word through Adobe PDF printer with some text in it. I wanna try to append some changes to the file. So I create a new form and a simple code:</div><div><br></div><div>unit Unit1;</div><div>interface</div><div>uses<br>&nbsp; Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,<br>&nbsp; Vcl.Controls, Vcl.Forms, Vcl.Dialogs, DebenuPDFLibrary, Vcl.StdCtrls;</div><div>Const QPDFLicKey='licensekey';</div><div>type<br>&nbsp; TForm1 = class(TForm)<br>&nbsp;&nbsp;&nbsp; Button1: TButton;<br>&nbsp;&nbsp;&nbsp; procedure Button1Click(Sender: TObject);<br>&nbsp; private</div><div>&nbsp; public<br>&nbsp;&nbsp;&nbsp; { Public declarations }<br>&nbsp; end;</div><div>function QuickPDFLib_AppendToPDF(filepath: String): Boolean;</div><div>var<br>&nbsp; Form1: TForm1;</div><div>implementation</div><div>{$R *.dfm}</div><div>function QuickPDFLib_AppendToPDF(filepath: String): Boolean;<br>var PDF: TDebenuPDFLibrary;<br>begin<br>&nbsp; result:= false;<br>&nbsp; PDF:= TDebenuPDFLibrary.Create;<br>&nbsp; PDF.UnlockKey(QPDFLicKey);</div><div>&nbsp; if PDF.LoadFromFile(filepath ,'') &gt; 0 then<br>&nbsp;&nbsp;&nbsp; begin<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if PDF.AppendToFile(filepath) &gt; 0 then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; result:= true;<br>&nbsp;&nbsp;&nbsp; end;<br>end;</div><div>procedure TForm1.Button1Click(Sender: TObject);<br>var<br>&nbsp; res: boolean;<br>begin<br>&nbsp; res:= QuickPDFLib_AppendToPDF('C:\pdf_work\test_pdf.pdf');<br>&nbsp; if res then<br>&nbsp;&nbsp;&nbsp; ShowMessage('Success!!')<br>&nbsp; else<br>&nbsp;&nbsp;&nbsp; ShowMessage('Fail!!');<br>end;</div><div>end.</div><div><br></div><div>And when I use the button, 'Success' message appears. But when I open the pdf file:</div><div><br></div><div>- in adobe reader, it gives me error 14, that the file is corrupted</div><div>- in google chrome, the file won't load</div><div>- tried MS Edge, the file did load there surprisingly</div><div><br></div><div>the code is just basic load and append nothing more when I do the same thing using Direct Access(DA) there is no problém, the pdf file saves fine. Problem is that DA doesnt have a lot of the usual functionality.</div><div>At first I tried to do some more stuff with it, like add an embedded file, merge 2 documents together and the result file came out alright when I use SaveToFile function. But whenever I use AppendToFile, the result file gets corrupted.</div><div>Note: the filepath always stays the same, so I am appending to the same file I open. If you don't give it the same file then the library throws an exception. I can upload the files somewhere if deemed neccessary. But I was kinda curious whether anyone else has encountered this.</div><div><br></div><div>Hope it is somewhat understandable,</div><div>mhnejmles</div><div><br></div>]]>
   </description>
   <pubDate>Fri, 10 Feb 2017 17:58:32 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/appendtofile-incremental-updates_topic3438_post13669.html#13669</guid>
  </item> 
  <item>
   <title><![CDATA[AppendToFile, incremental updates : Hi mhnejmles,you should put your...]]></title>
   <link>http://www.quickpdf.org/forum/appendtofile-incremental-updates_topic3438_post13668.html#13668</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 3438<br /><strong>Posted:</strong> 10 Feb 17 at 8:21AM<br /><br />Hi mhnejmles,<br><br>you should put your code into a try/finally structure to be more save.<br>What's inside input_file?<br>It should be always the same name.<br>Please read the description regarding AppendToFile (then you'll know while corruption can appear):<br>http://www.debenu.com/docs/pdf_library_reference/AppendToFile.php<br>Here you can read about incremental updates:<br>http://www.debenu.com/kb/incremental-updates/<br><br>Cheers and welcome here,<br>Ingo<br><br>]]>
   </description>
   <pubDate>Fri, 10 Feb 2017 08:21:46 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/appendtofile-incremental-updates_topic3438_post13668.html#13668</guid>
  </item> 
  <item>
   <title><![CDATA[AppendToFile, incremental updates : So, hasanyone been working with...]]></title>
   <link>http://www.quickpdf.org/forum/appendtofile-incremental-updates_topic3438_post13667.html#13667</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2931">mhnejmles</a><br /><strong>Subject:</strong> 3438<br /><strong>Posted:</strong> 10 Feb 17 at 1:55AM<br /><br /><div>So, has&nbsp;anyone been working with incremental updates lately? I've been trying to make it work in the latest 13.11 version but to no avail. Every pdf file I append goes corrupted and is unusable in most PDF viewers.</div><div><br></div><div>Even such a simple code like:</div><div><br></div><div>var <br>&nbsp; PDF: TDebenuPDFLibrary;<br>&nbsp; res: Integer;<br>begin<br>&nbsp; PDF:= TDebenuPDFLibrary.Create;<br>&nbsp; PDF.UnlockKey(const_key);</div><div>&nbsp; res:= PDF.LoadFromFile(input_file, '');<br>&nbsp; res:= PDF.AppendToFile(input_file);</div><div>&nbsp; PDF.Free;<br>end;</div><div><br></div><div>ends up destroying the pdf file. And no changes were made to it. Direct Access functions work fine but you have less functionality in it. So have anyone else encountered this?</div>]]>
   </description>
   <pubDate>Fri, 10 Feb 2017 01:55:56 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/appendtofile-incremental-updates_topic3438_post13667.html#13667</guid>
  </item> 
 </channel>
</rss>