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!
![]() |
CapturePage then use on NewDocument |
Post Reply
|
| Author | |
NBachus
Beginner
Joined: 11 Jan 12 Status: Offline Points: 3 |
Post Options
Thanks(0)
Quote Reply
Topic: CapturePage then use on NewDocumentPosted: 11 Jan 12 at 7:26PM |
|
I am trying to capture a page from one document, and DrawCapturedPage into a different document ID. Is this possible? I am currently getting the "invalid capture id" error when doing so. Here is an example code:
doc1 = QP.SelectedDocument() doc2 = QP.NewDocument() ret = QP.SelectDocument(doc1) currentPageID = QP.CapturePage(1) ret = QP.SelectDocument(doc2) ret = QP.SelectPage(1) ret = QP.DrawCapturedPage(currentPageID, 500, 500, 500, 500) |
|
![]() |
|
Ingo
Moderator Group
Joined: 29 Oct 05 Status: Offline Points: 3530 |
Post Options
Thanks(0)
Quote Reply
Posted: 12 Jan 12 at 7:29AM |
|
Hi!
Here's a sample from the forum here:
Please check it out.
Cheers and welcome here,
Ingo
|
|
![]() |
|
AndrewC
Moderator Group
Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
Post Options
Thanks(0)
Quote Reply
Posted: 12 Jan 12 at 10:55AM |
|
When you use CapturePage and DrawCapturePage you must use the same documentID. What you normally is call MergeDocument() to merge the page that you want to capture into the document that you want to draw on. Capture that page, which deletes it, and then DrawCapturePage to draw it where you need to.
Andrew.
|
|
![]() |
|
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