By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,550 Members | 1,189 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,550 IT Pros & Developers. It's quick & easy.

RTF 2 Tiff

P: n/a
Hi all,
I am trying to convert an RTF file to a Tiff image using Python. This
process will convert several hundred images daily. Currently I am
able to get the RTF file into a text format using Rtf2Txt.py, but I
loose the images contained in the RTF file. I have the same problem
when I convert to .HTML using Rtf2Html.py. I do not have a sample
that I can share because of HIPPA regulations. Can anyone please help
me?

Thanks,

Chris J.

Aug 6 '07 #1
Share this Question
Share on Google+
4 Replies


P: n/a
On Aug 6, 12:15 pm, cjankow...@hbr-inc.com wrote:
Hi all,
I am trying to convert an RTF file to a Tiff image using Python. This
process will convert several hundred images daily. Currently I am
able to get the RTF file into a text format using Rtf2Txt.py, but I
loose the images contained in the RTF file. I have the same problem
when I convert to .HTML using Rtf2Html.py. I do not have a sample
that I can share because of HIPPA regulations. Can anyone please help
me?

Thanks,

Chris J.
Perhaps someone will have a more Pythonic answer. Abiword will
convert from rtf to html and can be run from the command line. I
would also look at openjade and w3m. You may have to parse the file
and look for the images and convert them separately using an
Imagemagick type program. I don't have much experience with this, but
hopefully one of these will work or someone else can provide more info.

Aug 6 '07 #2

P: n/a
cj********@hbr-inc.com wrote:
Hi all,
I am trying to convert an RTF file to a Tiff image using Python. This
process will convert several hundred images daily. Currently I am
able to get the RTF file into a text format using Rtf2Txt.py, but I
loose the images contained in the RTF file. I have the same problem
when I convert to .HTML using Rtf2Html.py. I do not have a sample
that I can share because of HIPPA regulations. Can anyone please help
me?

Thanks,

Chris J.
Google turns up lots of solutions, but you didn't tell us what operating system
you are running on. Most likely you will want to automate one of the off-the
shelf solutions rather than trying to roll your own.

-Larry
Aug 6 '07 #3

P: n/a
On Aug 6, 4:04 pm, Larry Bates <larry.ba...@websafe.comwrote:
cjankow...@hbr-inc.com wrote:
Hi all,
I am trying to convert an RTF file to a Tiff image using Python. This
process will convert several hundred images daily. Currently I am
able to get the RTF file into a text format using Rtf2Txt.py, but I
loose the images contained in the RTF file. I have the same problem
when I convert to .HTML using Rtf2Html.py. I do not have a sample
that I can share because of HIPPA regulations. Can anyone please help
me?
Thanks,
Chris J.

Google turns up lots of solutions, but you didn't tell us what operating system
you are running on. Most likely you will want to automate one of the off-the
shelf solutions rather than trying to roll your own.

-Larry
We are running Windows Operating Systems. I was not able to find
anything that actually would convert the images via command line or
interface. I tried a couple of boxed solutions and they only convert
the text portions. I would perfer to not reinvent the wheel. I did
find someone has created RTF's using Python and images, but I need to
reverse the process.

Thanks again,

Chris J.

Aug 7 '07 #4

P: n/a
On Aug 7, 4:09 pm, cjankow...@hbr-inc.com wrote:
[...]
We are running Windows Operating Systems. I was not able to find
anything that actually would convert the images via command line or
interface.
[...]
You could instruct OpenOffice to export the RTF files as PDF files by
using the Python-UNO bridge
and then convert the PDF files to TIFF. Google finds a lot of PDF to
TIFF converters.

Dennis Benzinger

Aug 8 '07 #5

This discussion thread is closed

Replies have been disabled for this discussion.