Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!
![]() |
Imposing PDF |
Post Reply
|
| Author | |
Barnabe42
Beginner
Joined: 01 Feb 12 Location: Finland Status: Offline Points: 2 |
Post Options
Thanks(0)
Quote Reply
Topic: Imposing PDFPosted: 01 Feb 12 at 10:43AM |
|
Hello,
I am looking for a way to impose several PDFs into a bigger one.
I have customer having files in A4 and A3 format and they would like to merge them into one A0 file.
Is it possible to acheive using Quick PDF ?
/Eric
|
|
![]() |
|
AndrewC
Moderator Group
Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
Post Options
Thanks(0)
Quote Reply
Posted: 01 Feb 12 at 12:34PM |
|
Here is the basic logic that you would need to follow.
1. Create a blank A0 sized page. QP.NewDocument(); QP.SetPageSize("A0"); QP.SaveToFile("A0.pdf"); 2. Merge all the required PDF's into a single PDF. QP.ClearFileList("MergeList"); QP.AddToFileList"(MergeList", "a0.pdf"); QP.AddToFileList("MergeList", "page1.pdf"); QP.AddToFileList("MergeList", "page2.pdf"); QP.AddToFileList("MergeList", "page3.pdf"); QP.LoadFormFile("merged.pdf", ""); for (int i=1; i<=3 ; i++) // QP.PageCount - 1 ??? { QP.SelectPage(2); double wid = QP.PageWidth(); double hgt = QP.PageHeight(); int capId = QP.CapturePage(2); // Page 2 is capture and also deleted from the document. QP.SelectPage(1); QP.DrawCapturedPage(capId, i * 300, i * 300, wid, hgt); } QP.SaveToFile("imposed.pdf"); |
|
![]() |
|
Barnabe42
Beginner
Joined: 01 Feb 12 Location: Finland Status: Offline Points: 2 |
Post Options
Thanks(0)
Quote Reply
Posted: 02 Feb 12 at 1:46PM |
|
Thanks a lot, I was able to impose 3 pdfs into a single A0 pdf.
|
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store