Print Page | Close Window

Overlay Merge

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=574
Printed Date: 18 May 24 at 3:13PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Overlay Merge
Posted By: pspencer
Subject: Overlay Merge
Date 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



Replies:
Posted By: marian_pascalau
Date Posted: 30 Nov 06 at 9:44AM
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


Posted By: JanN
Date Posted: 30 Nov 06 at 5:00PM
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.



Posted By: pspencer
Date Posted: 01 Dec 06 at 9:55AM
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. Smile
 
Thanks again
 
Paul


Posted By: JanN
Date Posted: 01 Dec 06 at 10:15AM
You're welcome.

A small hint: SetOrigin and SetMeasurementUnits make things a little bit easier. Smile



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