Print Page | Close Window

Printing a PDF page inside another document

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


Topic: Printing a PDF page inside another document
Posted By: bmcdonald
Subject: Printing a PDF page inside another document
Date Posted: 19 Sep 11 at 6:33PM
Hello,
 
I am currently trying to render a PDF page inside of another document that will be printed. The calling code passes in a printer hdc and settings of top, left, right, and bottom that represent the rectangle on the source docuemnt the PDF page needs to be rendered into. I have no control over the calling coding. All I have to work with is the rectangle settings and the printer's device context. Has anyone done this before or something similar?
 
Thanks in advance for any help you can provide.
 



Replies:
Posted By: AndrewC
Date Posted: 20 Sep 11 at 4:24PM

QP.RenderPageToDC is probably the function you are looking for.

   http://www.quickpdflibrary.com/help/quickpdf/RenderPageToDC.php - http://www.quickpdflibrary.com/help/quickpdf/RenderPageToDC.php

You may need to use some of the Win32 API calls that deal with HDC's.


Posted By: bmcdonald
Date Posted: 22 Sep 11 at 4:33PM
That is what I was thinking. I will probably have to use BitBlt to render to the rectable inside the HDC.
 
Thanks



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