473,394 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 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 1873
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Robin Becker | last post by:
Has anyone done transparency with PIL & TIFF? I'm using PIL to generate a preview TIFF for embedding into an eps file and am being asked for the TIFF to support transparency. -- Robin Becker
2
by: Al Reid | last post by:
Is it possible to display an image that is stored on the server as a TIFF image, on an ASP.Net page without the use of an add-in viewer? If so, could someone tell me how to do it? TIA -- Al...
0
by: Will Arrowsmith | last post by:
Hi All, I am trying to create a .tiff file to fax using the windows fax service FAXCOMLib. I have created an array of images (bitmaps) and converted them to 1pbb format in order to allow...
0
by: Will Arrowsmith | last post by:
Hi All, I am aiming to create a multiframe Tiff file that I can fax using the windows fax service FAXCOMLib. I have created an array of Bitmaps (pages I want in my fax doc) and succesfully...
5
by: Shane Story | last post by:
I can seem to get the dimensions of a frame in a multiframe tiff. After selecting activeframe, the Width/Height is still really much larger than the page's actual dimensions. When I split a...
6
by: qysbc | last post by:
I have a web page and there is a link to open a TIFF file. The way I do it is to have the server code open a binary stream, set the content type to "image/tiff" and call Response.BinaryWrite. On...
1
by: amit gupta | last post by:
Hello, I am using QuarkXPress on Macintosh to generate EPS Files with Tiff Preview embedded in it. I have written some C code to extract Tiff Preview from EPS files generated which works pretty...
7
by: Ben | last post by:
Hi We are looking for a component that offers that offers the below for Tiff files: Image clean-up (deskew, despeckle) Printing capabilities from VB The ability to add text to image, e.g....
10
by: =?Utf-8?B?UmludSBHb3BhbGFrcmlzaG5hIFBpbGxhaQ==?= | last post by:
Hi, Please help me to write a dll in C# , that will read each pages of a tiff image from a file and a memory stream object ( need two ways) and creatre a new tiff image object.The dll should...
3
by: GiJeet | last post by:
Hello, we have an app that scans documents into TIFF format and we need to transfer them over the internet. If anyone knows of a SDK we can use that can compress TIFFs on the fly or even if it can...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.