Microsoft Office Document Imaging
Microsoft Office Document Imaging (MODI) is a discontinued Microsoft Office application that supports editing documents scanned by Microsoft Office Document Scanning. It is first introduced in Microsoft Office XP and is included in Office 2003 and Office 2007. Although it is not available in Office 2010, it is possible to install it from a previous version of Microsoft Office and use it with Office 2010. MODI allows users to scan documents (via MODS), perform optical character recognition (OCR), view scanned document and annotate scanned documents.
MODI supports Tagged Image File Format (TIFF) as well as its own proprietary format called MDI. It can save text generated from the OCR process into the original TIFF file. However, MODI produces TIFF files that violate the TIFF standard specifications and are only usable by itself.
In its default mode, the OCR engine will de-skew and re-orient the page where required.
Since Office 2003 Service Pack 3, MODI no longer takes over the file association with Tagged Image File Format (TIFF) files as part of the Service Pack's security changes. Also, it no longer supports JPEG compression in TIFF files.
|Internet media type||
|Type of format||Image file formats|
Microsoft Document Imaging file format (
.mdi extension) is MODI's proprietary format for storing scanned documents together with optional annotations or metadata which can include the text generated by OCR process.
- Magic number is
0x5045, instead of TIFF's
- Three proprietary image compression formats are used.
- Numerous proprietary tag values are used.
The MODI object model is accessible from development tools that support the Component Object Model (COM) by using a reference to the Microsoft Office Document Imaging 11.0 Type Library. The MODI Viewer control is accessible from any development tool that supports ActiveX controls by adding Microsoft Office Document Imaging Viewer Control 11.0 or 12.0 (
MDIVWCTL.DLL) to the application project. These folders are usually located in
C:\Program Files\Common Files\Microsoft Shared\MODI.
The MODI control became accessible in the Office 2003 release; while the associated programs were included in earlier Office XP, the object model was not exposed to programmatic control.
A simple example in Visual Basic .NET follows:
Dim inputFile As String = "C:\test\multipage.tif" Dim strRecText As String = "" Dim Doc1 As MODI.Document Doc1 = New MODI.Document Doc1.Create(inputFile) Doc1.OCR() ' this will ocr all pages of a multi-page tiff file Doc1.Save() ' this will save the deskewed reoriented images, and the OCR text, back to the inputFile For imageCounter As Integer = 0 To (Doc1.Images.Count - 1) ' work your way through each page of results strRecText &= Doc1.Images(imageCounter).Layout.Text ' this puts the ocr results into a string Next File.AppendAllText("C:\test\testmodi.txt", strRecText) ' write the OCR file out to disk Doc1.Close() ' clean up Doc1 = Nothing
MODI is not included with Office 2010. The Internet Fax feature in Office 2010 uses the Windows Fax printer driver to generate a TIFF file. Microsoft offers MDI to TIFF File Converter, a command line tool, which allows users to convert one or more MDI files to TIFF.
- Install MODI for use with Microsoft Office 2010, Microsoft Support
- "TIFF Revision 6.0 Final — June 3, 1992" (PDF). Adobe Systems. 15 September 1995. Archived from the original on 24 June 2012. Retrieved 13 December 2012.
- Head, Michael R. (13 March 2008). "Handling Microsoft Office Document Scanning TNEF and TIFFs in Linux". Suppressingfire.org. Retrieved 13 December 2012.
- "You may experience issues when you run the Microsoft Office Document Imaging program after you install Office 2003 Service Pack 3 (Revision 3.0)". Microsoft Support. Microsoft. 11 August 2009. Retrieved 13 December 2012.
- Notes on Microsoft Document Imaging file format, by Brad Hards
- "Microsoft Document Imaging status / snapshot" by Brad Hards
- "Changes in Word 2010 (for ITPros)". TechNet. Microsoft. 9 December 2010. Retrieved 13 December 2012.
- "MDI to TIFF File Converter". Microsoft Download Center. Microsoft. Retrieved 2014-08-22.
- "An .mdi file does not open in the Microsoft Office Document Imaging program that is included in the 2007 Office programs (Revision 4.0)". Microsoft Support. Microsoft. 12 September 2011. Retrieved 13 December 2012.
- "Microsoft Office Document Imaging Visual Basic Reference (MODI)". Microsoft Download Center. Microsoft. 9 December 2003. Retrieved 13 December 2012.
- "Using the Microsoft Office Document Imaging 2003 Object Model". MSDN. Microsoft. Retrieved 13 December 2012.