http://qs321.pair.com?node_id=912614


in reply to converting doc to pdf

There isn't a way out from having to deal with installing modules be it now -for this case- or later, a time will come where you may just need to do that. It serves two major advantages to know the following; how to install modules on your machine, how to read their documentations and how to consistently use them:

Not to deviate from the topic, in CPAN there are many PDF modules to enable manipulation of PDF files to different levels of complexity and they're robust and more appropriate to pick instead of thinking of writing your own code. If you have issues with installing modules you can read at the Tutorials the guides for Installing Modules ...

On another note, there are websites that do format conversions, however, they put a cap on the maximum file size you can submit, the output quality or the number of submission you're allowed, I find http://www.pdfonline.com/ to be very good and reliable.


David R. Gergen said "We know that second terms have historically been marred by hubris and by scandal." and I am a two y.o. monk today :D, June,12th, 2011...

Replies are listed 'Best First'.
Re^2: converting doc to pdf
by kcella (Beadle) on Jul 04, 2011 at 15:55 UTC

    I was able to finally install tidyp and HTML::Tidy. It turns out the conversion produces a flat text file in PDF format. I lose all the formatting from the original Word document. It appears the only solution is to convert it through OpenOffice or Word which is not something that comes installed by the webhost.

    Even if I could install OpenOffice locally, I imagine it would take up more of my alloted space than I can afford.

    I was hoping that like most things, there would be several solutions to this problem. It seemed like a very common thing that many people would need to accomplish in a CLI mode.

    My next attempt will be to find a way to convert a word document to postscript and then use ps2pdf to convert it to a PDF thereby hoping to maintain the formatting.