Ask Your Question

erAck, where can I find the tools you used.

asked 2019-06-14 23:47:29 +0200

ElectronPusher gravatar image

updated 2019-06-15 08:27:38 +0200

ebot gravatar image

@erAck Thank you for the response to my previous question,
Where can I find information about the odt file format, the various sections within the file, and the tools you used to provide your answer. Thank you.

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2019-06-17 13:10:52 +0200

erAck gravatar image

ODF documents, unless they are flat XML document (.fodt, .fods, ...) are zip containers with several .xml streams (content.xml, styles.xml, images, ...). Any capable (un)zip implementation should be able to detect the CRC errors I mentioned there. To inspect streams just unzip the document that already gives the errors I mentioned, zip integrity can also be checked by the InfoZip implementation's unzip -t filename.ods (for example) command.

To inspect an XML stream I usually use our dev-tools prettyprint command, which nicely reformats the two-long-lines content to indented elements, and in this case also indicates the error positions because of unmatched closures where data is corrupted.

The ODF file streams are defined along with the ODF specification specifically Part 3: Packages.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2019-06-14 23:47:29 +0200

Seen: 60 times

Last updated: Jun 17