News for hackers. Stuff that matters.
Re:Embedded PDF viewer in Firefox 81 supports filling forms by liversage on Tuesday September 22, 2020 @12:14PM (#24556282)
Microsoft Word stores XML documents inside a zip archive. There is a detailed specification of the format available: https://docs.microsoft.com/en-us/openspecs/office_standards/...
Re:Embedded PDF viewer in Firefox 81 supports filling forms by xaldir on Tuesday September 22, 2020 @12:32PM (#24556555)
I think he was talking about the classic .doc format which was a clusterfuck and not the open XML.
Re:Embedded PDF viewer in Firefox 81 supports filling forms by akie on Tuesday September 22, 2020 @02:14PM (#24557958)
If I remember correctly the XML format was just an XML-encoded version of the binary counterpart. Including all or most of the bugs and weird hacks.
Re:Embedded PDF viewer in Firefox 81 supports filling forms by amaccuish on Tuesday September 22, 2020 @02:35PM (#24558192)
with the previous format being essentially a memory dump, i'd say that's progress
Re:Embedded PDF viewer in Firefox 81 supports filling forms by alexott on Tuesday September 22, 2020 @04:39PM (#24559609)
That’s correct - I worked with MS team that documented old formats, and they said that sometimes they don’t have people left who knew what specific struct was intended for - although that was mostly for people PowerPoint and Visio, excel and word was better documented
Re:Embedded PDF viewer in Firefox 81 supports filling forms by tinus_hn on Thursday September 24, 2020 @10:40AM (#24579029)
Actually Excel was the only one that had official, freely available documentation for the old (now legacy) file format.
Re:Embedded PDF viewer in Firefox 81 supports filling forms by patrec on Tuesday September 22, 2020 @05:07PM (#24559912)
You don't remember correctly. Word's docx format is far more intelligent than openoffice ODT, despite propaganda to the contrary. With one exception: word's zip files don't have a convenient magic header. The way it works with ODT, and a bunch of other formats is that you put an uncompressed identifier file (`mimetype`) as the first entry inside your zipfile. At byte 30 (of your zipfile) you then get `mimetype$THE_MIMEMETYPE`. This is a nice trick and works for any zip-based format. Sadly, docx does not do that so you have to go by file extension or look at (more of) the contents of the zipfile.
Re:Embedded PDF viewer in Firefox 81 supports filling forms by yoz-y on Thursday September 24, 2020 @10:32AM (#24578941)
IIRC the original doc (and xls) formats were unwieldy mainly because of performance requirements. In order to save and load fast they were basically a bunch of binary dumped structs.