Print Page | Close Window

Move a page from one document to another.

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=1202
Printed Date: 04 Apr 26 at 10:24AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Move a page from one document to another.
Posted By: Hbaloo
Subject: Move a page from one document to another.
Date Posted: 06 Sep 09 at 1:18PM
Hy,
I'd like to ask how can i move a page from 1 document to another?
The page contains a full-page image,and nothing else.I tried get-set content but didn't work.
I couldn't find an easy way to do it but I'm sure this is possible.Any help would be great!
Thanks,Hbaloo
Edit:I'm using version 7.15



Replies:
Posted By: DELBEKE
Date Posted: 06 Sep 09 at 3:07PM
You ca't move a page from one document to an other, but.
You can merge a document into the current one,and you can delete pages in the selected document.
Have a look at the MergeDocument Function


Posted By: Ingo
Date Posted: 06 Sep 09 at 4:06PM
Hi!

This functions from here:
http://www.quickpdflibrary.com/help/quickpdf/PageManipulation.php
...you should have a look on for what you wanna do:
CopyPageRanges
ExtractPages
ClonePages
CapturePage
MovePage
SelectPage

First you have to select the page.
Now you should save the page-id (result from SelectPage).
Now you have to activate/load the other (the target) pdf-file.
With your page-function and the old page-id now you can insert/append the old page to the new document.

Cheers, Ingo

BTW: I didn't do it 'till now ... but it should work ;-)



Posted By: Hbaloo
Date Posted: 06 Sep 09 at 6:26PM
Thank you for your answers!
I found a different solution.Since every page contains 1 picture, and nothing else,i simply copy the pictures.It still needs a little trick but this is what I've one:
Select source document
select image
save image to file
select destination document
load image from file
draw image


Posted By: Ingo
Date Posted: 06 Sep 09 at 6:40PM
Hi!

Why you don't look here:
http://www.quickpdflibrary.com/help/quickpdf/FunctionGroups.php
If you want some functions for rendering:
http://www.quickpdflibrary.com/help/quickpdf/RenderingAndPrinting.php
If you want some functions for image handling:
http://www.quickpdflibrary.com/help/quickpdf/RenderingAndPrinting.php

I've found this one for you:
RenderPageToFile
SelectImage
DrawImage

What you wanna do will work but you'll get loss of quality.
PageCopy-functions are better.

Cheers, Ingo




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