Hi Guys,
So all the suppressing of the Wx::PrintDialog box was about trying to print my Wx::RichText doc in background to a PDF file. (See Wx::Perl, background printing, PDF document creation and PDF file names.) I never got it working despite spending a week on it.
The options I have explored are:
- Print in background to PDF printer, but the printer does not work without the dialogue box.
-
wxRichTextCtrl::SaveFile with wxRICHTEXT_TYPE_PDF, but apparently wxRICHTEXT_TYPE_PDF is not yet implemented.
-
External packages like Wx::PdfDocument, but a) The wrapping is very old, for an out-of-date version, and would need to be updated and b) it would require me to implement a per-page PrinterDC style of printing.
At the moment the last seems the most attractive, but are there any others I haven't considered?
The XML, I understand is a custom XML, so although there are plenty of XML2PDF style packages around, I guess they won't work for the Wx brand of XML, is that right?
Any ideas? Maybe I'm missing something very obvious.
Regards
Steve
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.