Re: Html or Pdf to Rtf (Linux) with Python
From: Stephen Thorne (stephen.thorne_at_gmail.com)
Date: 12/17/04
- Next message: Mike Meyer: "Re: BASIC vs Python"
- Previous message: Michael Spencer: "Re: create lowercase strings in lists - was: (No subject)"
- Maybe in reply to: Alexander Straschil: "Html or Pdf to Rtf (Linux) with Python"
- Next in thread: Axel Straschil: "Re: Html or Pdf to Rtf (Linux) with Python"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 17 Dec 2004 11:00:18 +1000 To: Axel Straschil <axel@straschil.com>, python-list@python.org
On Thu, 16 Dec 2004 19:30:37 +0000 (UTC), Axel Straschil
<axel@straschil.com> wrote:
> > That's easy. Load the HTML in MS Word, and save it as RTF. Script it
> > via COM using the python win32all (I think that's what it's now
> > called) package.
>
> As I wrote in my posting and the subject: linux ;-)
> I could try to do this with open office, by I'm afraid this will not
> be a performant solution ;-(
> I realy was spending hour's on that, the only thing I found was a
> spezifikation for reach text, maybe a good point to start a project ...
I've been able to successfully get konqueror to generate a pdf from a
html file via dcop. It's something along the lines of:
% dcop konqueror-25827 html-widget1 print 1
You can launch konq in a xvfb (X Virtual Framebuffer) then communicate
via dcop to send commands to the browser (load this url, print this
page, etc).
I've been investigating doing the same feat using JS/XUL/etc in
mozilla. It probably is possible. There's lots of documentation about
the XPCOM api available from http://xulplanet.com/
As for converting to RTF, someone has already pointed out PyRTF.
Regards,
Stephen Thorne
- Next message: Mike Meyer: "Re: BASIC vs Python"
- Previous message: Michael Spencer: "Re: create lowercase strings in lists - was: (No subject)"
- Maybe in reply to: Alexander Straschil: "Html or Pdf to Rtf (Linux) with Python"
- Next in thread: Axel Straschil: "Re: Html or Pdf to Rtf (Linux) with Python"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|