4

Are there any techniques one can use to have Word save RTF documents in a leaner (simpler, lighter weight) format than it does by default? We have large RTF documents that use basic formatting only and the size difference between Word (2003, 2007, 2010) RTF documents and the same documents opened in WordPad and resaved is 4x! For example, a 6M RTF Word document becomes a 1.4M RTF document when opened with Word and resaved. The WordPad RTF file open and saves are instantaneous, but the Word RTF open and saves are very slow. Using our 6M example document, all recent versions of Word can take 4+ seconds to open or save this document, but the same document opens and saves instantaneously via WordPad.

We are locked into using RTF because these documents are part of a complex workflow with all steps requiring RTF content.

Nifle
  • 34,998
Malcolm
  • 181

3 Answers3

2

If there are images in the RTF document, you may want to check out this KB article from MS:

Symptom blurb:

...If an EMF, a PNG, a GIF, or a JPEG graphic is inserted into a Word document, when the document is saved, two copies of the graphic are saved in the document.

...a Microsoft Word 2000 document that contains a JPEG graphic that is saved as a Word 2000 document may have a file size of 45,568 bytes (44.5KB). However, when you save this file as Word 6.0/95 (.doc) or as Rich Text Format (.rtf), the file size may grow to 1,289,728 bytes (1.22MB).

Resolution blurb:

To prevent Word from saving two copies of the graphic in the document, and to reduce the file size of the document, add the ExportPictureWithMetafile=0 string value to the Microsoft Windows registry...

Maybe there's some help there?

0

As aking1012 wrote in his comment it's probably old metadata and undo info that is taking all that space.

I don't know if this solution also works for RTF documents but this article Remove Hidden Data tells you how to remove the hidden data.

But it's so complicated that it seems simpler to just:

  1. Create a new empty document
  2. Copy all in old document, save as old.backup (or something)
  3. Paste in new empty document, save and overwrite source.
Nifle
  • 34,998
0

It might be worthwhile to try to automate the process somehow, if you're that tightly bound to Word. Tools like AutoIt might be really useful.

afrazier
  • 23,505