Print Page | Close Window

What is the best way to merge multiple 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=2272
Printed Date: 28 Sep 24 at 10:17PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: What is the best way to merge multiple pdf files?
Posted By: ExchangeViews
Subject: What is the best way to merge multiple pdf files?
Date Posted: 22 May 12 at 11:57AM
I want to merge multiple pdf files together in a right way where some pdf with all the pages and some pdf with selected pages using ExtractPageRanges(). Can anyone guide me in prefect way either by using MergeDocument, MergeFileList, MergeFiles or MergeStreams functions?



Replies:
Posted By: ExchangeViews
Date Posted: 23 May 12 at 10:19AM
Suppose I have 3 pdf files. I want to include all the pages of first pdf file; 2, 4, 9 pages of second pdf file and 2, 6, 8 pages of third pdf file into a single merged pdf file as output.

if I use MergeFileList
QP.AddToFileList('myList', 'c:\1.pdf'); //all the pages
QP.LoadFromFile('c:\2.pdf','');
QP.ExtractPageRanges(2, 4, 9);
....
QP.MergeFileList('myList','c:\merged.pdf');

Now how to add these extracted pages into QP.AddToFileList function? Is there any other way to merge these selections?




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