Print Page | Close Window

MovePage ??

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=2214
Printed Date: 26 Jun 25 at 12:43PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: MovePage ??
Posted By: hawkmaster
Subject: MovePage ??
Date Posted: 06 Apr 12 at 7:00PM
Hello,

can somebody give me a short example code (perhaps PHP) how you can move a page in a PDF?
For example a 10 pages PDF, I want to move page 3 behind page 7.

thanks a lot

regards
hawk



Replies:
Posted By: Ingo
Date Posted: 06 Apr 12 at 7:58PM
Hi Hawk!

You don't post a sample - so i've moved your posting into this section ;-)
I've searched all online resources offered by the publishers of QuickPDF and found the following...

Here are all functions regarding your issue:
http://www.quickpdflibrary.com/help/quickpdf/PageManipulation.php

The function MovePage:
http://www.quickpdflibrary.com/help/quickpdf/MovePage.php

Here is a basic sample how to work with PHP:
http://www.quickpdflibrary.com/samples/download/php_activex_sample.zip

How can I insert pages from one PDF file to another PDF file?
http://www.quickpdflibrary.com/faq/how-can-i-insert-pages-from-one-pdf-file-to-another-pdf-file.php

Capture a page from a document and draw it onto another page:
http://www.quickpdflibrary.com/faq/capture-a-page-from-a-document-and-draw-it-onto-another-page.php

Cheers and welcome here,
Ingo




Posted By: hawkmaster
Date Posted: 07 Apr 12 at 2:31PM
Hi Ingo,
thanks for your help,
I also searched the forum for "MovePage" but nothing found here.
I have also looked into the PDF reference guide. But it is not clear for me.
In the reference it means
"Moves the selected page to a new position in the document"
there is only a parameter for the new position, but how can you do the "Selected page"
which is the selected page?

regards
hawk


Posted By: Ingo
Date Posted: 07 Apr 12 at 5:13PM
Try the selectpage-function then you'll get the id of the page
and with this id you're doing the move.


Posted By: edvoigt
Date Posted: 08 Apr 12 at 10:36AM
Hi,

in Delphi your sample (move page 3 after page 7) looks so:

QP.SelectPage(3); // select page to manipulate
QP.MovePage(8);   // new position of selected page


SelectPage determs the page you want to deal with (normaly drawing and so on).
Movepage moves the page to the new location. There should only one small question be: is 7 or 8 the right value? Try it and see!


Cheers,
Werner



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