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!
![]() |
Device Context |
Post Reply
|
| Author | |
mmaraffi
Beginner
Joined: 02 May 16 Status: Offline Points: 3 |
Post Options
Thanks(0)
Quote Reply
Topic: Device ContextPosted: 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?
|
|
![]() |
|
Ingo
Moderator Group
Joined: 29 Oct 05 Status: Offline Points: 3530 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
mmaraffi
Beginner
Joined: 02 May 16 Status: Offline Points: 3 |
Post Options
Thanks(0)
Quote Reply
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?
|
|
![]() |
|
Ingo
Moderator Group
Joined: 29 Oct 05 Status: Offline Points: 3530 |
Post Options
Thanks(0)
Quote Reply
Posted: 10 May 16 at 5:41PM |
|
no ;-)
but this isn't a QuickPDF-prob - so Dr.Goo... will help :) |
|
|
Cheers,
Ingo |
|
![]() |
|
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