RE: Removing Macros from a document

2017-05-03 Thread Allison, Timothy B.
>Hey, PunKeel, this is great! >If your software is based on POI and you'd like to upstream some of your >changes to POI to make your library more straight forward, send us a pull >request and we'll review it, give feedback, and commit it. +1 ---

Re: Removing Macros from a document

2017-05-03 Thread PunKeel
tl;dr: I'm still searching for a way to open "Document" streams for PPT/DOC files, but I have leads I need to check! Hey Javen, Thanks for the link! I was looking at one "[MS-xxx].pdf" file at a time, thru their online versions, but wasn't aware a zip was available. DocBleach already handles em

Re: Removing Macros from a document

2017-05-02 Thread Javen O'Neal
If you haven't discovered it already, Microsoft has published the specifications for the Microsoft Office OLE2 binary file formats. https://msdn.microsoft.com/library/cc313118.aspx Scroll down to Download "Office File Formats PDF .zip file" At the very least, you'll want to skim through [MS-OVBA]

Re: Removing Macros from a document

2017-05-02 Thread Javen O'Neal
Hey, PunKeel, this is great! If your software is based on POI and you'd like to upstream some of your changes to POI to make your library more straight forward, send us a pull request and we'll review it, give feedback, and commit it. I have barely dabbled in how VBA projects are saved in the OLE

Re: Removing Macros from a document

2017-05-02 Thread PunKeel
Hello, I've found out the solution for Excel files: removing the "ObProj" record of the Workbook. The code I'm using is available here: https://gist.github.com/PunKeel/0e72ccde78cb0150383a9ced094c2bce I don't think this is the

Removing Macros from a document

2017-05-01 Thread PunKeel
Hello, I am currently building an open-source software to disarm Office files, named DocBleach [1] but I am stuck with some specificities the OLE2 format. First of all, I would like to thank you for the great library that is Apache POI! When opening disarmed OLE2 files in Office Excel/Word on