These steps will work in Windows. I'll just use example folder paths:
- Create a document with some sample text like TRUE to search for, and sign it
- Copy your valid signed word document to
C:\temp\valid.docx
- Rename the file to
test.zip
(you may have to enable viewing file extensions) - Right-click the file > Extract All... > Extract. This should create a folder named valid
- Open the file
C:\temp\valid\word\document.xml
in notepad - Edit some of the sample text (TRUE -> FALSE), save, and close the xml file
- Select everything inside the
C:\temp\valid\
folder (you should see folders named_rels
andword
for example). - Right-click > Send to > Compressed (zipped) folder
- Rename the zip file to
edited.docx
When you open edited.docx
in Word, the document will not be corrupted, you'll see the edited text, and you should get a notification showing invalid signatures
Older .doc files and such work the same, but have slightly different internal file names