Page 1 of 1

Docx4j API abbreviations

PostPosted: Tue Jun 06, 2017 9:54 pm
by peter.hilton
Where can I find a glossary of the abbreviations that the Docx4j API uses, e.g. in class names like SdtPr?

I’m guessing that these are all part of a Microsoft API or Office Open XML or some other specification. I’m trying to get started with docx4j but I’m finding it hard to read the sample code because I don’t know what any of the names mean.

Re: Docx4j API abbreviations

PostPosted: Tue Jun 06, 2017 10:46 pm
by jason
You can find the spec for WordML at http://webapp.docx4java.org/OnlineDemo/ ... index.html

You can also create a sample docx, then load it in the docx4j webapp or Docx4j Helper Word AddIn. Then, when you click on an element to generate code, at the top of the code listing, the element you clicked on will be shown again, this time linked to the corresponding page in the spec.

That covers the WordML elements (eg SdtPr). For an understanding the how the parts relate to one another, see the "Open XML Explained" PDF (which you can find online), or the intro section of the ECMA or ISO Open XML docs.