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!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - CapturePage then use on NewDocument
  FAQ FAQ  Forum Search   Register Register  Login Login

CapturePage then use on NewDocument

 Post Reply Post Reply
Author
Message
NBachus View Drop Down
Beginner
Beginner


Joined: 11 Jan 12
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote NBachus Quote  Post ReplyReply Direct Link To This Post Topic: CapturePage then use on NewDocument
    Posted: 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)


Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3530
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post 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
 
Back to Top
AndrewC View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 08 Dec 10
Location: Geelong, Aust
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndrewC Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store