On 12/20/06, David Canar <[EMAIL PROTECTED]> wrote:
Greg Freemyer wrote:
> All,
>
> I need a shell script invokable tool to convert (and/or print) html
> files.
>
> I've found html2pdf which works okay, but the created PDF doesn't
> really look that similar to the same html rendered in firefox etc.
>
> http://www.rustyparts.com/pdf.php
>
> I've looked at the firefox command line args and I don't see a way to
> use it as a command-line printer.  i.e I would have to launch firefox
> and click print.  Won't work, I need a non-interactive solution.
>
> Any ideas?
>
I have a small command line program in C# (mono) that opens HTML files
in OpenOffice and transforms the file to PDF and closes OpenOffice. I'm
using the UNO bridge. The only problem is that you need OpenOffice
installed and an X server running all the time. But it works great. Let
me know if you need my program to send it to you.

This is an example of the same concept using Python instead:

http://mithrandr.moria.org/blog/447.html

Also, mono has a small program that will capture any web page into a
PNG. It is an example of how to use the Gecko engine with C#
(gecko-sharp). It is not a PDF but maybe it could work for you. In mono
look for gecko-sharp

David.

Thanks David

I'm most interested in using the Gecko engine so I think I will look
into that.  Do you happen to know if there is a mailing list I should
sign up for to ask questions etc.about doing that?

Thanks again
Greg
--
Greg Freemyer
The Norcross Group
Forensics for the 21st Century
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to