Nice!! Thanks!
-----Original Message-----
From: Vermont Area Group of Unix Enthusiasts [mailto:[email protected]] On
Behalf Of Benjamin Coddington
Sent: Tuesday, March 17, 2009 12:15 PM
To: [email protected]
Subject: Re: Convert MHT files to PDF
Here's a way
-- install unMHT for firefox, and disable "Memory Cached Mode" in the prefs
-- install torisugari's command line print for firefox.
-- run something like this:
firefox <mhtfile> & ln -s ~/.mozilla/firefox/<profile>/UnMHT/Cache/*
/tmp/unmht; ln -s /tmp/unmht/0 /tmp/unmht/0.htm; firefox -print
file:///tmp/unmht/0.htm -printmode pdf -printfile <mhtfile>.pdf; killall
firefox
Its a hack that works like this:
Firefox unmht decodes the mht to show in the browser, and saves a copy
in its cache. Then scrape its cache as html, and print as pdf.
Ben
Portelance, Brad wrote:
> Happy St. Patrick's Day!
>
> Does anyone know of a good way to batch convert .MHT files to .PDF in Linux?
> I have done some googling and searching the system and can't come up with
> anything that would help me batch convert 200 documents.
>
> Has anyone done this?
> Thanks!
> Brad
>