472,143 Members | 1,146 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,143 software developers and data experts.

RTF 2 Tiff

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
4 1810
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
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
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
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.

Similar topics

2 posts views Thread by Robin Becker | last post: by
2 posts views Thread by Al Reid | last post: by
reply views Thread by Will Arrowsmith | last post: by
reply views Thread by Will Arrowsmith | last post: by
6 posts views Thread by qysbc | last post: by
1 post views Thread by amit gupta | last post: by
10 posts views Thread by =?Utf-8?B?UmludSBHb3BhbGFrcmlzaG5hIFBpbGxhaQ==?= | last post: by
3 posts views Thread by GiJeet | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.