Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Re: Re: Converting M$ Word --> PDF

by neuroball (Pilgrim)
on Jan 24, 2004 at 00:51 UTC ( #323755=note: print w/ replies, xml ) Need Help??


in reply to Re: Re: Converting M$ Word --> PDF
in thread Converting M$ Word --> PDF

Peter, you can just use the above concept also to covert from HTML to PDF. I have no idea where the limits are though.

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.

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.
    1. Do some perl magic to get what you want...
    2. ...Unknown step...
    3. Profit!

/oliver/


Comment on Re: Re: Re: Converting M$ Word --> PDF
Re: Re: Re: Re: Converting M$ Word --> PDF
by peterr (Scribe) on Jan 24, 2004 at 01:12 UTC
    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.
      1. Do some perl magic to get what you want...
      2. ...Unknown step...
      3. Profit!

    Okay, I will try that also. Wow, I sure have enough things to try now, thanks everyone for your help. :)

    Peter

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://323755]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (2)
As of 2014-08-31 03:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (294 votes), past polls