Print Page | Close Window

Device Context

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=3319
Printed Date: 02 Feb 26 at 10:03AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Device Context
Posted By: mmaraffi
Subject: Device Context
Date Posted: 02 May 16 at 8:36PM
I need to know if there is a way to create a PDF from an existing Device Context that already contains the graphics and text?



Replies:
Posted By: Ingo
Date Posted: 03 May 16 at 7:09PM
Hi Raffi,

i think you can save the dc to image-file or -stream
and then you can render it to pdf.
This should work.
Please read here as a starting point:
http://www.quickpdf.org/

Cheers and welcome here,
Ingo



-------------
Cheers,
Ingo



Posted By: mmaraffi
Date Posted: 10 May 16 at 5:12PM
I cannot save the dc as an image because the following lines of code fail on the SelectObject.

TempDC = PDFWriter.GetCanvasDCEx(2550,3300,mhPrintDC)
TempBM = GetCompatibleBitmap(mhPrintDC, 2550, 3300)
ret1 = SelectObject(TempDC, TempBM)

Do you know of an alternative?


Posted By: Ingo
Date Posted: 10 May 16 at 5:41PM
no ;-)
but this isn't a QuickPDF-prob - so Dr.Goo... will help :)



-------------
Cheers,
Ingo




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