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 - Device Context
  FAQ FAQ  Forum Search   Register Register  Login Login

Device Context

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


Joined: 02 May 16
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote mmaraffi Quote  Post ReplyReply Direct Link To This Post Topic: Device Context
    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?
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: 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

Back to Top
mmaraffi View Drop Down
Beginner
Beginner


Joined: 02 May 16
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote mmaraffi Quote  Post ReplyReply Direct Link To This Post 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?
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: 10 May 16 at 5:41PM
no ;-)
but this isn't a QuickPDF-prob - so Dr.Goo... will help :)

Cheers,
Ingo

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