Hello Steve, > I'm guessing that wxPdfDocument has not been wrapped for wxPerl yet.
About 6 years ago Mark Wardell started to implement a wxPerl wrapper for wxPdfDocument. But as far as I know this work was never completed and isn't maintained. But you may take a look at CPAN: http://www.cpan.org/modules/by-module/Wx/ Wx-PdfDocument-0.05.readme Wx-PdfDocument-0.05.tar.gz > So I guess the choices are: > > - Wrap wxPdfDocument when I get a chance. Maybe you could use the work of Mark Wardell as a starting point, although it's based on an old version of wxPdfDocument. > - Use some native Perl CPAN module like PDF::Create or PDF:API. Certainly an option. It'll depend on your requirements whether one of these modules is suited or not. > But in either case I'm not sure how I'd input the document into the > interface, would I have to produce some sort of DC and inject it into > wxPdfDocument. I myself prefer to use the wxPdfDocument methods directly without a wxDC detour. > Ulrich, does wxPdfDocument support the wxPrintFramework yet. I saw it > was planned to but it was never clear to me if this had been acheived. Full integration with the wxPrintFramework is not in place but since version 0.9.0 of wxPdfDocument (released end of 2010) I provide a wxPdfDC class. In the wxPdfDocument distribution you find a sample showing the use of the wxPdfDC class. It supports creating PDF documents using the wxDC drawing methods and the printing framework methods StartDoc/EndDoc and StartPage/EndPage. Not all wxDC drawing methods are supported yet, but most basic methods are. For example gradient fills are not yet supported via wxPdfDC although wxPdfDocument itself supports them. After releasing wxPdfDC I had expected to get lots of feedback (bug reports, feature requests and so on) from users/developers because this feature was quite often asked for. But in fact there was almost no reaction from the community at all. So I have to admit that I didn't feel very obliged to make wxPdfDC more complete. Regards, Ulrich