Hi neuroball,
you can just use the above concept also to covert from HTML to PDF. I have no idea where the limits are though.
Yes, I think I saw a module on Cpan to do it. Now, if there was also a Perl module to do HTML --> Word, that would be great.
Just use Perl to open the HTML file in OpenOffice and then make OpenOffice print it to PDF. I just tried it with a google page, and as long as the images are local, no problems should arise.
Okay, I will try that, seeing I have just d/loaded OpenOffice, all 52 Mb. Hope it handles tables, word templates, images,etc, okay
If you want another way you might try the following:
- Download HTMLdoc, which is GPL'ed, and install it.
- Download HTML::HTMLdoc from CPAN and install it.
- Do some perl magic to get what you want...
- ...Unknown step...
- Profit!
Okay, I will try that also. Wow, I sure have enough things to try now, thanks everyone for your help. :)
Peter
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.