Am 29.11.2010 14:11, schrieb Filip:
I though the underlying structure format is common for all documents (docx,
xlsx, pptx .. ), but it seems from your clarification that each file format
has its own way and structure to save information about the document such as
if the document is encrypted or not.
The other way round:
It is common for all XML based file formats (DOCX, XLSX, PPTX, ... of
MSO 2007), but specific for the old binary file formats (DOC, XLS, PPT
of MSO 97-2003).
Thank you both for your help and clarifications, I will dig more into MS's
specifications along with OO's source code to get the task done.
For the XML based formats, a quick detection just has to check:
1) the package type is OLE storage (in difference to ZIP for unencrypted
files),
2) the streams "EncryptionInfo" and "EncryptedPackage" exist in the root
storage.
You may have a look at oox/source/core/filterdetect.cxx for the
implementation in OOo.
If you have further questions, just ask here ;-)
Regards
Daniel
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]