From: Peter G. <pet...@gm...> - 2009-05-01 11:02:00
|
Hello, I'm maintaining an MFC application, and I'd like to be able to export some simple GDI generated documents to PDF. I see that wxPdfDocument has the capability of reading a Windows metafile (which essentially consists of a series of GDI function calls and their parameters): http://wxcode.sourceforge.net/docs/wxpdfdoc/classwx_pdf_document.html : See "bool wxPdfDocument::Image" It ought to be possible for me to serialise my document as a windows Metafile using some MFC facility, perhaps to a temp directory, and subsequently open that file using bool wxPdfDocument::Image. Is this practical, sensible and possible? How tightly coupled is wxPdfDocument to WxWidgets? The only other way that I can find of doing this entails purchasing an extremely overpriced licence for a commercial library. Regards, Peter Geoghegan |