Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

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

by neuroball (Pilgrim)
PDF NODE.owner = 135051 N.title = monktitlebar sitedoclet N.owner = 17342 -->
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/

Replies are listed 'Best First'.
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?
[Corion]: But yes, in general, my approach will be "split the URL into another set of parameters, generate an array of allowed values for each parameter and then NestedLoops() over the set"
[choroba]: hmm... so you need something like bag from Test::Deep, but not for checking, but for generation
[Corion]: This has the dual use of easily requesting sequential URLs and also being suitable for testing
[Corion]: For testing, I want to skip all tests with the same value(s) once one test fails to cut down on the number of failing tests
[Corion]: choroba: Yes, in a way I
[Corion]: ... I'm treating the incoming value sets as bags... Maybe I'll just put the burden on the user, at least in the first attempt at a full API. generate( headers => [{ 'Content-Type' => 'text/plain' }, {'Content-Type' => 'text/json' ] ), even ...
[Corion]: ... if that is cumbersome for the caller to specify. On the other hand, maybe there isn't that big a need for permuting the header values

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2017-01-17 08:25 GMT
Sections?
PDF NODE.owner = 135051 N.title = Sections sitedoclet N.owner = 17342 -->
Information?
PDF NODE.owner = 135051 N.title = Information sitedoclet N.owner = 17342 -->
Find Nodes?
PDF NODE.owner = 135051 N.title = Find Nodes sitedoclet N.owner = 17342 -->
Leftovers?
    PDF NODE.owner = 135051 N.title = Leftovers sitedoclet N.owner = 17342 -->
    Voting Booth?
    Do you watch meteor showers?




    Results (152 votes). Check out past polls.