summaryrefslogtreecommitdiff
path: root/libmat2/office.py (follow)
AgeCommit message (Collapse)Author
2019-11-30Improve a bit ppt supportjvoisin
2019-11-30Improve a bit odt handlingjvoisin
2019-10-17Improve a bit the support for ppt filesjvoisin
2019-09-01Improve a bit the comments in the codejvoisin
This is related to the previous commit
2019-09-01Remove nsid fields from MSOffice documentsjvoisin
nsids are random identifiers, usually used to ease merging between documents, and can trivially be used for fingerprinting.
2019-04-27Add tar archive supportjvoisin
2019-03-05Refactor {black,white}list into {block,allow}listBrolf
Closes #96
2019-02-08Improve a bit get_meta for libreoffice filesjvoisin
2019-02-07Use of the archive refactoring for the office documents toojvoisin
2019-02-04Refactor a bit office get_meta handlingjvoisin
This should make easier to get more metadata from archive-based file formats.
2019-02-03Whenever possible, use bwrap for subprocessesintrigeri
This should closes #90
2018-10-25Implement get_meta() for archivesjvoisin
2018-10-12Bump mypy typing coveragejvoisin
2018-10-05Improve both the typing and the commentsjvoisin
2018-10-04Trash word/people.xml in office filesjvoisin
2018-10-03Don't break office files for MS Officejvoisin
We didn't take the whitelist into account while removing dangling files from [Content_types].xml
2018-10-03Improve mat2's cli reliabilityjvoisin
- Replace some class members by instance members - Don't thread the cleaning process anymore for now
2018-10-02Use [Content_Types].xml to improve MS Office coveragejvoisin
2018-10-02fix typogeorg
2018-10-01Files processed via MAT2 are now accepted without warnings by MS Officejvoisin
2018-09-30Please mypyjvoisin
2018-09-30Remove dangling references in MS Office's [Content_types].xmljvoisin
2018-09-24Second pass of minor formattingjvoisin
2018-09-24Fix some minor formatting issuesjvoisin
2018-09-24Implement rsid stripping for office filesjvoisin
MS Office XML rsid is a "unique identifier used to track the editing session when the physical character representing this section mark was last formatted." See the following links for details: - https://msdn.microsoft.com/en-us/library/office/documentformat.openxml.wordprocessing.previoussectionproperties.rsidrpr.aspx - https://blogs.msdn.microsoft.com/brian_jones/2006/12/11/whats-up-with-all-those-rsids/.
2018-09-24Lexicographical sort on xml attributes for office filesjvoisin
In XML, the order of the attributes shouldn't be meaningful, however, MS Office sorts attributes for a given XML tag differently than LibreOffice.
2018-09-06Split office and archivesjvoisin
2018-09-05Unknown Members: make policy use an EnumDaniel Kahn Gillmor
Closes #60 Note: this changeset also ensures that clean.cleaned.docx is removed up after the pytest is over.
2018-09-05Remove defusedxml support and document whyjvoisin
2018-09-05Improve the previous commitjvoisin
2018-09-04office: try all members, even when one failsDaniel Kahn Gillmor
the end result will be the same -- an abort -- but the user will get to see all the warnings for a particular file, instead of getting them one at a time.
2018-09-04document all unknown/unhandlable files even on abortDaniel Kahn Gillmor
This makes it easy to get a list of all files that mat2 doesn't know how to handle, without having to choose -u keep or -u omit.
2018-09-04office: create policy for what to do about unknown membersDaniel Kahn Gillmor
previously, encountering an unknown member meant that any parser of this type would abort. now, the user can set parser.unknown_member_policy to either 'omit' or 'keep' if they don't want the current action of 'abort' note that this causes pylint to complain about branching depth for remove_all() because of the nuanced error-handling. I've disabled this check.
2018-09-01Fix a minor formatting issuejvoisin
2018-09-01Logging cleanupdkg
2018-07-19Improve the code's documentationjvoisin
2018-07-19Minor simplification in how we're handling xml for office filesjvoisin
2018-07-10Remove `print` from libmat, and use the `logging` module insteadjvoisin
This should close #28
2018-07-09Make pylint even happierjvoisin
2018-07-08Fix some pep8 issues spotted by pyflakesjvoisin
2018-07-08Achieve 100% coverage!jvoisin
2018-07-08Bump coverage for office files and fix some related crashesjvoisin
2018-07-08Silence a mypy's stupid warningjvoisin
2018-07-08Add defusedxml as an (optional) way to prevent XML-based attacksjvoisin
Those attacks are DoS-only.
2018-07-07Fix a mistake in office file revisions handlingjvoisin
2018-07-02Improve a bit the formatting of the code thanks to pyflakes3jvoisin
2018-07-01Remove docx revisionsjvoisin
2018-07-01MAT2 is now cleaning revisions from odt files!jvoisin
2018-07-01Remove the thumbnails from libreoffice filesjvoisin
2018-06-27Massively simplify how we're cleaning office filesjvoisin