What is "Specular" and "Diffuse" in the lightRig table in section 2.1.1274 in [MS-OI29500]?
Hi all, The table of lightRigs in section 2.1.1274 in [MS-OI29500] has columns "Specular" and "Diffuse". Such columns are missing in section 2.1.1321, which is about legacy lightRigs. What is the meaning of "Specular" and…
What OOXML can I enter in a PPTX to password protect the presentation?
I have a PPTX and I want to make it password protected programatically by inserting OOXML. When I try to check the Diff of a non-protected and protected document, the files in the password protected OOXML are encrypted and the only line that is human…
How to get theme colors data from theme1.xml file when convert ppt to html
**I have confusion related how I read which color and which color css or filter use in theme ppt. I have no idea related how I calculate the actual color ratio from theme1.xml file. Please guide me how I can proceed on it.** This XML file does not…
![](https://techprofile.blob.core.windows.net/images/1JlamiBeBk2fQ98X64TYTw.png?8D8B27)
How to generate 2 worksheets in excel workbook when we are generating that excel from xml after applying OOXML xsl?
Hi, I am not able to relate/create 2nd sheet in xsl using ooxml. How to link Sheet defined in workbook variable to the <worksheet.. > element where we actually populate the data? Thanks.
Conversion of irregular tables doc->docx.
Hello, I am trying to convert a binary doc file that contains table - into docx ooxml format. I have problem with irregular tables. I have 3 questions: When I'm parsing table properties, I can read cell widths (from sprmTDefTable.rgTc80[i].wWidth) …
How to decode *.one files in OneNote Online format?
Hello! I have a library that processes *.one files in OneNote 2010/OneNote Online formats. Unencrypted documents are processed fine. Encrypted documents in OneNote 2010 format also causes no problem. But I couldn't parse encrypted *.one files in…
Conversion table of doc->docx parameters.
Hello, I am trying to convert a doc binary file into docx ooxml format. There are many ".doc" binary format parameters related to e.g. "OOXML/Settings" sections not mapped 1:1 into ".docx" ooxml format. Can you please…
Are the fields in MS-OFORMS in fmPosition swapped?
In MS-OFORMS, specifically https://learn.microsoft.com/en-us/openspecs/office_file_formats/ms-oforms/73c3866f-bbac-4f45-ba70-645fd046bfdf the fmPosition struct is described as "Top (4 bytes)", then "Left (4 bytes)", i.e. vertical…
OOXML - SVG Image doesn't show up preview in box until it gets saved using MS Word.
I am inserting an SVG Image using OOXML 2.18version into document and then uploading to BOX Platform. in BOX Platform the Image preview is not coming, Whereas if I open the document in MS word the image is displaying and if save it to Box, then also…
Excel row height logic calculation
Using C# and OpenXML, given a font name and its height, I need to calculate the exact row height in pixels in order to draw an Excel spreadsheet in a CAD software. What I have done so far: I have been able to accurately calculate a column width given…
Support for style::shrink-to-fit of ODF 1.3
The document [MS-OODF13] states in item a) in 2.1.1275 Part 3 Section 20.360, style:shrink-to-fit, "This attribute is supported in Word 2013 and later." But it is not supported. (Sadly I cannot attach an .odt file here.) Item c) in the same…
DOCX needs repaired, but repair doesn't work and validator says there's no issues
Hello, I have a question about a docx file. It was generated using our own doc gen engine. When you open the file it says the document needs to be repaired, however when you run the file through the OOXML validator, it says there are no issues with the…
How to differentiate between MSI,PUB file vs DOC/XLS/PPT files
What is the correct technical way to differentiate between MSI,PUB,MSG vs DOC,XLS,PPT files. Basically all these files are of ole type and have magic header as D0 CF 11 E0 A1 B1 1A E1 Would like to know what is the correct way to find the file type for…
Generate Organization Chart In OpenXML / Powerpoint / Excel using Python
Hi, I would like to generate a powerpoint organization chart. I'ved found this but it does not provide much information that I…
List of all URLs in docx file
Hi, I am trying to analyze various .docx files (OOXML) for purposes of finding maliciousness in them. Now i know that one way is to hide malicious URLs. Now, due to the file structure of these files, they contain a lot of links that look like this: …
Document Signing
Hello, I need the OID of X509 certificate types for digitally signing using certificate of MS Word documents: DOC and DOCX and PDF. I guess they should not have the same OIDs, not sure though, anyone knows? :) Best.
OOXML Documentation
Hi, As per my understanding, the .docx , .pptx, and .xlsx files belong to Microsoft's OOXML file format. Please correct me if wrong. I was looking for the technical documentation of this file format but could not find one. Could you kindly guide me to…
![](https://techprofile.blob.core.windows.net/images/505cbe45b8fa4b8e85d7f6b479d92980.png)
Finding VBA Compressed source code in ole file
Hi, With reference to [MS-OVBA]. I am parsing a .doc file (MS-97-2003) in Python and i am able to read the directory structure. The directory structure is given at the end here. I know that the entry 'Module1' contains some compressed VBA code. Although…
How to disable a directory entry in OLE file
Hi, I am trying to parse a .doc file (OLE file) (MS-97-2003) by reading it byte by byte in python. I am so far successful in extracting the directory structure of the file. Suppose i find a directory named "Macros" in the .doc file and i want…
How to identify number of tokens in TokenSequence. MS-OVBA
Hi, With reference to MS-OVBAhttps://learn.microsoft.com/en-us/openspecs/office_file_formats/ms-ovba/575462ba-bf67-4190-9fac-c275523c75fc Section 2.4.1.1.7 Token Sequence It is mentioned that: "The number of Tokens in the final TokenSequence MUST be…