Print Page | Close Window

Move from Amyuni ?

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: General Discussion
Forum Description: Discussion board for Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=1603
Printed Date: 22 Nov 24 at 11:20PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Move from Amyuni ?
Posted By: WillNitschke
Subject: Move from Amyuni ?
Date Posted: 14 Oct 10 at 4:51AM
We currently use the Amyuni library... and am contemplating moving...

Does this library have a capability to emulate a printer driver so we can feed text, graphics, etc., into a "DC" that then can be used to render the PDF, in the same way this would be done using Amyuni (or CutePDF, etc.) ?

Or in other words, use the library as if it was a printer driver?

Thank you.



Replies:
Posted By: Shotgun Tom
Date Posted: 14 Oct 10 at 4:48PM
Hi Will and welcome to the QuickPDF Forum.
 
That feature/capability is not currently available with the QuickPDF Library.
 
Tom


Posted By: WillNitschke
Date Posted: 15 Oct 10 at 1:31PM
Thanks for the reply. Actually I am very interested in trying to avoid going through a printer driver and have a library that creates a PDF directly. (To avoid all the compatibility hassles involved with installing printers.)

I noticed there is a functions such as getCanvasDC() and LoadFromCanvasDC()... The doc's say:

Creates a canvas of the specified size and returns a Windows device context DC that can be drawn on using Win32 drawing commands. When drawing operations are complete, call the http://www.quickpdflibrary.com/help/quickpdf/LoadFromCanvasDC.php - LoadFromCanvasDC function to create a new document from the supplied drawing commands.

In principle, then, can I create one of these DC's, use the standard WinAPI to write my output, just as if I was preparing as printer page, but then pass the result back to this library for creation of the PDF? Hence no need for a printer driver?

If so, are there any code examples or tips on how to do this? Thanks.





Posted By: Wheeley
Date Posted: 15 Oct 10 at 10:02PM
I can give you 2 more avenues of research.

1. The demo app that is on the QuickPDFLibrary website.
http://www.quickpdflibrary.com/blog/2009/10/a-customizable-demo-for-quick-pdf-library/

2. Use the search function for the forum. There has been numerous topics dealing with the canvas functions.

Wheeley



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