Print Page | Close Window

CapturePage,DrawRotatedCapturedPage+NewDocument

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=2994
Printed Date: 03 May 24 at 4:45AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: CapturePage,DrawRotatedCapturedPage+NewDocument
Posted By: mLipok
Subject: CapturePage,DrawRotatedCapturedPage+NewDocument
Date Posted: 23 Oct 14 at 10:02AM
I load PDF File
And create NewDocument
I want to CapturePage from first (loaded) Document
And DrawCapturedPage on second (created new) Document

I use SelectDocument(CorrectCpturedID)

But it seems to DrawCapturePage can be used only within the same document .

Am I right? Whether or not I'm doing something wrong?

mLipok



-------------
Here you can find description how to test my examples:
http://www.quickpdf.org/forum/forum_posts.asp?TID=2932&PID=12600&title=drawcapturedpagematrix-matrix-howto#12600



Replies:
Posted By: erico
Date Posted: 24 Oct 14 at 3:35PM
DrawCapturedPage can indeed only be used in the same document. Use MergeDocument first to combine the 2 documents


-------------
Eric O


Posted By: mLipok
Date Posted: 25 Oct 14 at 10:28PM
Thanks for confirming my observations.

But this is not what I meant - I wanted to move pages between documents, but I solved my problem otherwise, without moving pages between documents.

edit: typo


-------------
Here you can find description how to test my examples:
http://www.quickpdf.org/forum/forum_posts.asp?TID=2932&PID=12600&title=drawcapturedpagematrix-matrix-howto#12600


Posted By: AndrewC
Date Posted: 27 Oct 14 at 5:47PM

mLipok,

Erico is correct.  You cannot use CapturePage to move pages from one document to another and the pages must be merged into a single document.  

Basically CapturePage will delete the page tree but technically not from the from the document.  It creates a pointer to the page which is the CaptureID and this ID can be use multiple times and multiple pages to draw the captured image.  The image can be scaled and rotated with various DrawCapture.. functions.

 "I wanted to move pages between documents, but I solved my problem otherwise, without moving pages between documents." - This is a contradictory statement to a degree so we don't exactly know what you wanted to achieve.  Did you use MovePage, DeletePages or MergeFileList ?

Andrew.


Posted By: mLipok
Date Posted: 27 Oct 14 at 8:44PM
Thanks for your answer AndrewC

How I said:
" but I solved my problem otherwise"

Check here:
http://www.quickpdf.org/forum/forum_posts.asp?TID=2928&PID=12085&title=printing-two-pages-in-one#12085




-------------
Here you can find description how to test my examples:
http://www.quickpdf.org/forum/forum_posts.asp?TID=2932&PID=12600&title=drawcapturedpagematrix-matrix-howto#12600



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