Print Page | Close Window

Merging PDF Files

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=1829
Printed Date: 07 Nov 25 at 11:19PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Merging PDF Files
Posted By: rweetch
Subject: Merging PDF Files
Date Posted: 16 May 11 at 8:59AM
I need to merge some pdf's I'm creating and am looking for the best (fastest) way to complete this. Each file is about 2.5mb and I need to meerge them into batches of 250, so an on disk merge would be best. There are no fields as they have all been flattened by this stage, but they do include images and fonts. Will MergeFilesFast be the best approach? Thanks



Replies:
Posted By: dsola
Date Posted: 09 Jun 11 at 12:16PM
I used this approach:
....

  pdfEng.SetTempPath('c:\tmp\');
  pdfEng.ClearFileList('myList');

  if FindFirst('c:\PDF_merge_files\*.pdf', faArchive, searchResult) = 0 then
  begin
    repeat
      pdfEng.AddToFileList('myList', 'c:\PDF_merge_files\'+searchResult.Name);
    until FindNext(searchResult) <> 0;

    FindClose(searchResult);

  end;

  pdfEng.MergeFileListFast('myList', 'c:\PDF_merge_files\RESULT.PDF');
  FreeAndNil(pdfEng);

....

Maybe it will be fast enough for You

D.


-------------
registered QuickPDF user



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk