[Solved] converting from html to pdf in shell or php
Posted: Thu Jan 17, 2008 2:17 pm
Hi, I am trying to convert html to pdf in linux redhat el 4 and tested a script called html2ps followed by ps2pdf. Unfortunately it seem that the html2ps ignores the <br> tag, nor does it support Arial font. So now I wonder if I can use open office to do it instead (read that there might be a possibility to do that somewhere). So now I got a few questions:
Is it possible to make a script open and save files via open office?
Can I do that even though I'm running in a shell (no graphical environment available)?
How would be the easiest way to achieve this?
I don't mind using perl, bash, or php (actually I prefer doing it in php but I'm far from sure that's possible).
The plan is that I will download a html-webpage a few times per day, then I want to take that webpage and convert to pdf in order to put it on an ftp-server.
Any suggestions or questions?
Is it possible to make a script open and save files via open office?
Can I do that even though I'm running in a shell (no graphical environment available)?
How would be the easiest way to achieve this?
I don't mind using perl, bash, or php (actually I prefer doing it in php but I'm far from sure that's possible).
The plan is that I will download a html-webpage a few times per day, then I want to take that webpage and convert to pdf in order to put it on an ftp-server.
Any suggestions or questions?