<?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 : Using MergeFiles in Delphi</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 : Using MergeFiles in Delphi]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 01 May 2026 09:20:04 +0000</pubDate>
  <lastBuildDate>Tue, 11 Feb 2014 07:46:18 +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=2453</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[Using MergeFiles in Delphi :  Hi Icap!Yes! You can ;-)But...]]></title>
   <link>http://www.quickpdf.org/forum/using-mergefiles-in-delphi_topic2453_post11473.html#11473</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 2453<br /><strong>Posted:</strong> 11 Feb 14 at 7:46AM<br /><br />Hi Icap!<div>&nbsp;</div><div>Yes! You can ;-)</div><div>But first you have to convert the image into pdf (this you can do with QP, too).</div><div>Then you can merge both pdf to one new big pdf.</div><div>Have a look at the merge-functions here:</div><div><a href="http://www.debenu.com/docs/pdf_library_reference/&#068;ocumentManipulati&#111;n.php" target="_blank" rel="nofollow">http://www.debenu.com/docs/pdf_library_reference/DocumentManipulation.php</a></div><div>&nbsp;</div><div>Cheers and welcome here,</div><div>Ingo</div><div>&nbsp;</div>]]>
   </description>
   <pubDate>Tue, 11 Feb 2014 07:46:18 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/using-mergefiles-in-delphi_topic2453_post11473.html#11473</guid>
  </item> 
  <item>
   <title><![CDATA[Using MergeFiles in Delphi : I can unify one imagems file &amp;#034;teste.jpg&amp;#034;...]]></title>
   <link>http://www.quickpdf.org/forum/using-mergefiles-in-delphi_topic2453_post11466.html#11466</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2506">lcap</a><br /><strong>Subject:</strong> 2453<br /><strong>Posted:</strong> 08 Feb 14 at 6:13PM<br /><br />I can unify one imagems file "teste.jpg" + * file. pdf "test.pdf" and turn into a big pdf file "1_teste.pdf" unified with debenu?]]>
   </description>
   <pubDate>Sat, 08 Feb 2014 18:13:21 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/using-mergefiles-in-delphi_topic2453_post11466.html#11466</guid>
  </item> 
  <item>
   <title><![CDATA[Using MergeFiles in Delphi :   lcap wrote:Sorry, I was testing...]]></title>
   <link>http://www.quickpdf.org/forum/using-mergefiles-in-delphi_topic2453_post11396.html#11396</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2090">TomInJax</a><br /><strong>Subject:</strong> 2453<br /><strong>Posted:</strong> 15 Dec 13 at 7:57PM<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by lcap" alt="Originally posted by lcap" style="vertical-align: text-bottom;" /> <strong>lcap wrote:</strong><br /><br />Sorry, I was testing the code, but does not identify "TDocumentProps", which unit or library I have to import. In the unit have now uses QuickPDF .... and recognized all other commands or less "TDocumentProps".<br><br>Can you help me?</td></tr></table><div><br></div><div>As TFrost said, TDocumentProps is an object that I create that is used in each item with additional properties. &nbsp;In this case:</div><div><br></div><div><pre wrap="" style=": rgb251, 251, 253;">TDocumentProps(lstDocs.Items.Objects&#091;x&#093;).FullPath</pre><pre wrap="" style=": rgb251, 251, 253;">translates to the full filepath to the file.  It contains something like this: c:\documents\doc3.pdf. </pre><pre wrap="" style=": rgb251, 251, 253;">Sorry for not simplifying my code at the time to make a better example.</pre><pre wrap="" style=": rgb251, 251, 253;"><br></pre><pre wrap="" style=": rgb251, 251, 253;">Cheers,</pre><pre wrap="" style=": rgb251, 251, 253;">Tom</pre></div>]]>
   </description>
   <pubDate>Sun, 15 Dec 2013 19:57:36 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/using-mergefiles-in-delphi_topic2453_post11396.html#11396</guid>
  </item> 
  <item>
   <title><![CDATA[Using MergeFiles in Delphi : TDocumentprops looks like a class...]]></title>
   <link>http://www.quickpdf.org/forum/using-mergefiles-in-delphi_topic2453_post11395.html#11395</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1388">tfrost</a><br /><strong>Subject:</strong> 2453<br /><strong>Posted:</strong> 15 Dec 13 at 11:30AM<br /><br />TDocumentprops looks like a class in the OP's own program. &nbsp;The parameters for the Debenu MergeFiles function (look them up) are simple strings.]]>
   </description>
   <pubDate>Sun, 15 Dec 2013 11:30:15 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/using-mergefiles-in-delphi_topic2453_post11395.html#11395</guid>
  </item> 
  <item>
   <title><![CDATA[Using MergeFiles in Delphi : Sorry, I was testing the code,...]]></title>
   <link>http://www.quickpdf.org/forum/using-mergefiles-in-delphi_topic2453_post11393.html#11393</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2506">lcap</a><br /><strong>Subject:</strong> 2453<br /><strong>Posted:</strong> 14 Dec 13 at 1:04PM<br /><br />Sorry, I was testing the code, but does not identify "TDocumentProps", which unit or library I have to import. In the unit have now uses QuickPDF .... and recognized all other commands or less "TDocumentProps".<br /><br />Can you help me?<span style="font-size:10px"><br /><br />Edited by lcap - 14 Dec 13 at 1:04PM</span>]]>
   </description>
   <pubDate>Sat, 14 Dec 2013 13:04:28 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/using-mergefiles-in-delphi_topic2453_post11393.html#11393</guid>
  </item> 
  <item>
   <title><![CDATA[Using MergeFiles in Delphi : Thanks Wheely,That code looks...]]></title>
   <link>http://www.quickpdf.org/forum/using-mergefiles-in-delphi_topic2453_post10300.html#10300</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2090">TomInJax</a><br /><strong>Subject:</strong> 2453<br /><strong>Posted:</strong> 16 Nov 12 at 1:33AM<br /><br />Thanks Wheely,<br><br>That code looks much easier and simpler.&nbsp; I will try in in my test app tomorrow.&nbsp; <br><br>Now I will know a couple ways to merge a PDF document together! <img src="http://www.quickpdf.org/forum/smileys/smiley4.gif" border="0" alt="Big smile" title="Big smile" />&nbsp; (Yes I read the documentation, but example code is always much easier to understand)<br><br>I appreciate you, Ingo, and AndrewC taking time to assist me so quickly.&nbsp; If any of you ever come to North Florida, I will be happy to buy a glass of your favorite drink for you.<br><br>Cheers,<br>Tom<br>]]>
   </description>
   <pubDate>Fri, 16 Nov 2012 01:33:38 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/using-mergefiles-in-delphi_topic2453_post10300.html#10300</guid>
  </item> 
  <item>
   <title><![CDATA[Using MergeFiles in Delphi : I would suggest using MergeFilesFast....]]></title>
   <link>http://www.quickpdf.org/forum/using-mergefiles-in-delphi_topic2453_post10299.html#10299</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=121">Wheeley</a><br /><strong>Subject:</strong> 2453<br /><strong>Posted:</strong> 15 Nov 12 at 11:26PM<br /><br />I would suggest using MergeFilesFast. You still have the can't merge into the same file problem, but you can use file lists and merge everything in one command. Just make sure the files are not encrypted before merging. Search the forums for merge. I gave some pseudo code before on this method.<br><br>Wheeley<br>]]>
   </description>
   <pubDate>Thu, 15 Nov 2012 23:26:35 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/using-mergefiles-in-delphi_topic2453_post10299.html#10299</guid>
  </item> 
  <item>
   <title><![CDATA[Using MergeFiles in Delphi :  Ok, there must be a simpler...]]></title>
   <link>http://www.quickpdf.org/forum/using-mergefiles-in-delphi_topic2453_post10294.html#10294</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2090">TomInJax</a><br /><strong>Subject:</strong> 2453<br /><strong>Posted:</strong> 15 Nov 12 at 1:26PM<br /><br />Ok, there must be a simpler method to concatenate several PDF documents than the way I am doing it.&nbsp; This code creates a result document with a number added to the filename.&nbsp; This seems to be necessary since the MergeFiles function cannot merge into the same document it is concatenating to.&nbsp; The oldest temporary file is removed, then the final document is renamed to the document that was selected by the user in the FilenameEdit control.<br><br>This test code is limited to 10 documents, otherwise the code breaks.<br><br>Code:<br><pre wrap="">procedure TfrmDemo.btnSaveDocClick(Sender: TObject);var  x: integer;  QP: TQuickPDF;  tempFileName: string;begin  if (lstDocs.Items.Count &gt; 0) then  begin    QP := TQuickPDF.Create;    tempFileName := TDocumentProps(lstDocs.Items.Objects&#091;0&#093;).FullPath;    try      for x := 1 to lstDocs.Items.Count - 1 do      begin      // Concatenate Documents to one big PDF document        begin          if QP.MergeFiles(tempFileName, TDocumentProps(lstDocs.Items.Objects&#091;x&#093;).FullPath, Copy(edtTmpFile.Text,1,POS('.PDF',ToUpper(edtTmpFile.Text))-1)+IntToStr(x)+'.PDF') = 0 then            ShowMessage(GetErrorMessage(QP.LastErrorCode));          tempFileName := Copy(edtTmpFile.Text,1,POS('.PDF',ToUpper(edtTmpFile.Text))-1)+IntToStr(x)+'.PDF';          //  Delete old file          if FileExists(Copy(edtTmpFile.Text,1,POS('.PDF',ToUpper(edtTmpFile.Text))-1)+IntToStr(x-1)+'.PDF') then            DeleteFile(Copy(edtTmpFile.Text,1,POS('.PDF',ToUpper(edtTmpFile.Text))-1)+IntToStr(x-1)+'.PDF');        end;      end;    finally      QP.Free;      RenameFile(Copy(edtTmpFile.Text,1,POS('.PDF',ToUpper(edtTmpFile.Text))-1)+IntToStr(x-1)+'.PDF',edtTmpFile.Text);    end;  end;end;</pre><br>]]>
   </description>
   <pubDate>Thu, 15 Nov 2012 13:26:01 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/using-mergefiles-in-delphi_topic2453_post10294.html#10294</guid>
  </item> 
  <item>
   <title><![CDATA[Using MergeFiles in Delphi :  I found the problem. The filename...]]></title>
   <link>http://www.quickpdf.org/forum/using-mergefiles-in-delphi_topic2453_post10293.html#10293</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2090">TomInJax</a><br /><strong>Subject:</strong> 2453<br /><strong>Posted:</strong> 15 Nov 12 at 1:03PM<br /><br />I found the problem.&nbsp; The filename edit component that I am using is adding double quotes to the beginning and end of the filename.&nbsp; <br><br>Sorry!&nbsp; D'Oh!!! <img src="http://www.quickpdf.org/forum/smileys/smiley9.gif" border="0" alt="Embarrassed" title="Embarrassed" /><br><br>Tom<br><span style="font-size:10px"><br /><br />Edited by TomInJax - 15 Nov 12 at 3:33PM</span>]]>
   </description>
   <pubDate>Thu, 15 Nov 2012 13:03:05 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/using-mergefiles-in-delphi_topic2453_post10293.html#10293</guid>
  </item> 
  <item>
   <title><![CDATA[Using MergeFiles in Delphi : Thanks Andrew. Here is the actual...]]></title>
   <link>http://www.quickpdf.org/forum/using-mergefiles-in-delphi_topic2453_post10292.html#10292</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2090">TomInJax</a><br /><strong>Subject:</strong> 2453<br /><strong>Posted:</strong> 15 Nov 12 at 12:15PM<br /><br />Thanks Andrew.&nbsp; Here is the actual test code that I am using.&nbsp; I added a tab to the demo project for this. <br><br>I am using version 8.15 (Source Code License), Delphi XE, on Windows XP.<br><br>The functionality is this:<br><br>1. "Add" button adds a file name to the TListbox (<font face="Courier New, Courier, mono" size="2">lstDocs)</font>, which also has an object with more properties (full path including filename).<br>2. A temporary file folder and file name is selected in a Filename Edit control (<font face="Courier New, Courier, mono" size="2">edtTmpFile.Text</font>).<font face="Verdana, Arial, Helvetica, sans-serif">&nbsp; This will be the merged document.<br></font>3. Save button is the event sample code.&nbsp; It reads the full path and passes it into the MergeFiles function, along with the path for the merged document.&nbsp; It iterates through the list and concatenates the documents together. <br><br>The GetErrorMessage function decodes the error number, translating it to the error text.<br><br>Here is the code:<br><br><pre wrap=""><font face="Courier New, Courier, mono" size="2">procedure TfrmDemo.btnSaveDocClick(Sender: TObject);var  x: integer;  QP: TQuickPDF;  tempFileName: string;begin  if (lstDocs.Items.Count &gt; 0) then  begin    QP := TQuickPDF.Create;    // Concatenate Documents to one big PDF document    try      tempFileName := TDocumentProps(lstDocs.Items.Objects&#091;0&#093;).FullPath;      for x := 1 to lstDocs.Items.Count - 1 do      begin        if QP.MergeFiles(tempFileName, TDocumentProps(lstDocs.Items.Objects&#091;x&#093;).FullPath, edtTmpFile.Text) = 0 then          ShowMessage(GetErrorMessage(QP.LastErrorCode));        tempFileName := edtTmpFile.Text;      end;    finally      QP.Free;    end;  end;end;</font><br><font face="Verdana, Arial, Helvetica, sans-serif"><br>Tom</font><br></pre><br>]]>
   </description>
   <pubDate>Thu, 15 Nov 2012 12:15:37 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/using-mergefiles-in-delphi_topic2453_post10292.html#10292</guid>
  </item> 
 </channel>
</rss>