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!
Overlay Merge |
Post Reply |
Author | |
pspencer
Beginner Joined: 30 Nov 06 Location: United Kingdom Status: Offline Points: 2 |
Post Options
Thanks(0)
Posted: 30 Nov 06 at 9:36AM |
I have 2 pdf files, each pdf file contains 1 page. I need to overlay one of these files on top of of the other and create a new pdf file with a single page.
I have tried using the MergeFiles function, but this creates 2 pages in the new pdf file, 1 after the other, this is no good as i need both the pdf files on the same page.
Is there any way i can achieve this? if so, could you tell me which functions i need to use.
Many thanks for your help
Paul
|
|
marian_pascalau
Debenu Quick PDF Library Expert Joined: 28 Mar 06 Location: Germany Status: Offline Points: 278 |
Post Options
Thanks(0)
|
Hi Paul, at the moment I am using most of the time for rendering so maybe I have an impropper answer for you. After a first look on your problem it seems that you have to iterate over all objects of one document page and add them to the other. I hope that this helps.
Regards, Marian
|
|
JanN
Senior Member Joined: 29 Oct 05 Location: Germany Status: Offline Points: 116 |
Post Options
Thanks(0)
|
Hi Paul,
after merging the two files, which is neccessary, you can do this: LoadDocumentFromFile CapturePage(2) SelectPage(1) DrawCapturedPage(...) That places the second page onto the first. Edited by JanN - 30 Nov 06 at 5:01PM |
|
pspencer
Beginner Joined: 30 Nov 06 Location: United Kingdom Status: Offline Points: 2 |
Post Options
Thanks(0)
|
Hi Jan,
Many thanks for your help, thats exactly what i needed.
The only problem i had was using the drawcapturedpage function, i was putting 0, 0 for the left and top co-ordinates, this caused the second page to not appear.
After some trial and error, i found out that the top co-ordinate needs to be the page height, so now it works, i get both pages merged together on a single page.
Thanks again
Paul
|
|
JanN
Senior Member Joined: 29 Oct 05 Location: Germany Status: Offline Points: 116 |
Post Options
Thanks(0)
|
You're welcome.
A small hint: SetOrigin and SetMeasurementUnits make things a little bit easier. |
|
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