mspview <path:filename.mdi>
mspview -r <path:filename.mdi>
mspview -o <path:filename.mdi>
This command has no effect if OCR has already been performed on the file.
Notes
- If the TIFF image is monochrome, it will be compressed in TIFF CCITT G4 format.
- If the TIFF image is grayscale or color, it will be compressed in TIFF 6.0 JPEG format.
- If the MDI image is monochrome, it will be compressed in MODI BW format.
- If the MDI image is grayscale or color, it will be compressed in MODI Color format.
- If the image is over 900 dots per inch (dpi), it will be saved at 900 dpi.
- The file is saved using the additional compression and OCR settings in the Options dialog box.
mspview -f <path:filename.mdi>
Use this command if you want to perform OCR on a file that has already had OCR performed on it.
Notes
- If the TIFF image is monochrome, it will be compressed in TIFF CCITT G4 format.
- If the TIFF image is grayscale or color, it will be compressed in TIFF 6.0 JPEG format.
- If the MDI image is monochrome, it will be compressed in MODI BW format.
- If the MDI image is grayscale or color, it will be compressed in MODI Color format.
- If the image is over 900 dpi, it will be saved at 900 dpi.
- The file is saved using the additional compression and OCR settings in the Options dialog box.
For example, the following command opens Mypic.tif in Reading view.
mspview -r "C:\My Documents\mypic.tif"
Microsoft Office Document Imaging returns the following informational and error values.
Return value | Meaning |
---|---|
0 | Command successful. |
1 | File already has OCR information. |
3 | Could not locate application. |
4606 | Unable to open file. Check file name and permissions. |
4610 | The file is not a valid Microsoft Office Document Imaging file. |
4645 | Microsoft Office Document Imaging does not support this type of TIFF file. |
4648 | Unable to save file. Check disk space and permissions. |
4654 | Cannot recognize text in this document. OCR was not successful. |
4655 | Cannot perform this operation due to system resource constraints. |
4657 | There is not enough memory to complete this operation. |
4661 | You do not have sufficient permissions to open or save this file. |
4662 | Unable to read file due to disk or network error. |
4663 | Not enough temporary disk space to complete the operation. |
4665 | A component of the application is missing. Please reinstall the application. |
4673 | There are too many instances of Microsoft Office Document Imaging running. Please close one or more and then retry this operation. |
4678 | Unable to complete operation. Check access permissions on the file. |
4679 | Unable to complete operation. If this is a network file, network connection may have failed. |
4681 | This file is read-only. |
4682 | Unable to complete operation. The file is locked for exclusive use by another user. Please try again later. |
4683 | Unable to copy file to local drive. Check disk space and permissions. |
4684 | Unable to open document. If this is a Web document, check your connection and try again. |
4685 | File already has OCR text information. |
4692 | Unable to save <filename>. This file is in use by another user. |
4699 | Microsoft Office Document Imaging requires the system locale and the application language to be the same. |
4700 | Error completing operation. Could not create temporary file. |
4701 | This operation has been canceled due to restrictions in effect on this computer. Please contact your system administrator. |
9009 | Bad command line argument. |