Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

How about MS office document ?


DOCX, PPTX, and XLSX Microsoft Office files are actually ZIP archives (which the paper addresses). You can append a ".zip" extension onto the end of them and explore.

https://en.wikipedia.org/wiki/Office_Open_XML


Last time I tried to parse .docx it was full of opaque binary blobs, it might be a zip but parsing the data is like summoning arcane magic. It might have changed in the last decade, but considering the Microsoft has no incitement to make the situation better parsing it is always going to be a "fun" exercise.


I was writing an indexer (ca. 2018), and I don't recall encountering opaque blobs, but parsing the ZIP file and XML (with a small C XPath scanner) was straightforward.

But indexing PDFs, now there's a fun one.


The old office binary formats are basically a FAT file system containing streams of unremarkable records. Knowing what those records do is the hard part!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: