TWiki Home TWiki . Protector . DocCheckMsword101 ( vs. r1.1) TWiki webs:
Know?| Main | Protector | TWiki |
Protector . { Home | Changes | Index | Search | Go }
 <<O>>  Difference Topic DocCheckMsword101 (r1.1 - 29 Jun 2002 - ChrisLowth)
Added:
>
>

%META:TOPICINFO{author="chris.lowth" date="1025367332" format="1.0" version="1.1"}% %META:TOPICPARENT{name="Documents"}%

check_msword

Part of protector (http://protector.sourceforge.net)
By Chris Lowth, (protector@lowth.com)

Synopsis

   check_msword filename

Description

This program checks that the file named as it's argument is an old-style (pre-OLE) Msword document, and that it contains no macros or embedded objects. It does this by searching the file for a set of strings, and confirming that these stings either exist or don't in fixed combinations. Note that the "check_msole" program is capable of performing checks much more reliably on OLE formatted MS Office documents. This program (check_msword) is only used for legacy MS Word document formats that don't adhere to the OLE format.

The result of the program's deliberations are output on stdout as commands that can be understood by the "part_filter" script that is also part of the protector suite.

The program does not actually understand the format of MSWord documents. The logic for performing the checks described above has been derived by inspecting a number of document files - and is probably rather too naive for long term use. Consider this to be an over-simple prototype for future improvement.

Output

The program displays the results of it's simple investigations using one of the following messages..

Message Description
allow_unchanged The file is safe for delivery.
replace_with wrong_type The file is not a legacy MS-Word document.
replace_with msword_has_macros The document contains one or more macros (or at least: appears to).
replace_with msword_has_embedded_objects The document contains one or more embedded objects which the program is not capable of extracting or checking.

Topic DocCheckMsword101 . { View | Diffs | r1.1 | More }
Revision -
Revision r1.1 - 29 Jun 2002 - 16:15 GMT - ChrisLowth
Copyright © 2001 by the contributing authors. All material on this collaboration tool is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback.