Print Page | Close Window

Interleave pages from 2-3 different 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=2114
Printed Date: 06 Jun 25 at 6:09PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Interleave pages from 2-3 different files
Posted By: CThomp2009
Subject: Interleave pages from 2-3 different files
Date Posted: 25 Jan 12 at 5:47PM
Hello, all.  I'm relatively new to QuickPDF, but with the documentation, FAQ and Forums, I'm finding it very easy to use.  Very nice.

One thing I can't seem to find a reference on is combining or interleaving pages from multiple source files into a single final file.

i.e., I have three files, 10 pages each.  The final product (pdf) should have pages in the following order:

1, 2, 3 (from File1), 3 (from File2), 3 (from File3), 4 (from File1), 4 (from File2), 4 (from File3)...

I'm not even sure where to begin with this (which functions to look at).  I've looked through "merging files", but these all refer to combining whole files together - not what I need.

Any assistance would be greatly appreciated!  (using the ActiveX version)



Replies:
Posted By: AndrewC
Date Posted: 26 Jan 12 at 8:23AM
You will need to use a combination of splitting and merging.

Splitting

http://www.quickpdflibrary.com/help/quickpdf/ExtractPageRanges.php - http://www.quickpdflibrary.com/help/quickpdf/ExtractPageRanges.php
http://www.quickpdflibrary.com/help/quickpdf/ExtractFilePages.php - http://www.quickpdflibrary.com/help/quickpdf/ExtractFilePages.php

Merging

http://www.quickpdflibrary.com/help/quickpdf/MergeFileList.php - http://www.quickpdflibrary.com/help/quickpdf/MergeFileList.php

Andrew.




Posted By: CThomp2009
Date Posted: 26 Jan 12 at 2:03PM
Thanks very much, Andrew.

I will try putting together the splitting/merging process you mention.

I have been trying to accomplish this using the CapturePage and DrawCapturedPage functions.  Paraphrashed, like this:

- Open files to be combined.
- Create new doc.
- Select first file, first page to be combined- capture page.
- Move to new doc and DrawCapturedPage.
- Move to second file, first page to be combined - capture page.
- Move to new doc.
- Insert new page.
- DrawCapturedPage.
- etc....

I end up with the correct # of pages in the new doc (after saving), but they're all blank.

Does this type of process have any merit for what I'm trying to do?  Or is the splitting/merging process the only/best way to do this?

Again, thanks very much for the response...


Posted By: edvoigt
Date Posted: 26 Jan 12 at 3:10PM
Hi,

capturing and drawing works only in one document. So so first a merge is needed, or you get blank pages. In your case is MovePage the best after merging to put pages in wished order.

Cheers,

Werner


Posted By: CThomp2009
Date Posted: 26 Jan 12 at 10:42PM
Thanks very much, Werner.

"capturing and drawing works only in one document" explains why I kept getting blank documents (and getting a little frustrated).

Your suggestion (merging the files together first, then moving them around in place) is something I will have to tinker around with - along with Andrew's Extract-and-Merge concept.

Thanks very much to both of you...  I'll post back when something turns out...



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