We use LO in headless mode to convert user-uploaded
.docx files to
This question is similar to another question here: extract track changes with command line, except that I don’t need to extract any change text. I merely need to detect yes/no whether a document includes tracked changes or not.
If I’m understanding the previous answer correctly, one solution would be to unpack the document, and grep the XML for the existence of at least one
<w:del> element, but that feels a bit of a hack. Is there a better way?