I'm sure there are people using docx4j who have more experience with this than me, but to get the ball rolling ...
The relevant setting may be autoSpaceDE [1]. There is also autoSpaceDN, and docGrid [2].
You can get the value from PPr:
- Code: Select all
ppr.getAutoSpaceDN()
The result is a BooleanDefaultTrue.
Is that what you are after, or an actual number? (If a number, what do you want to do with it?)
The actual number is UA specific ie the spacing that Word renders in the document is up to their layout algorithm. Web browsers will also do something similar - the equivalent CSS property is text-autospace. There is no equivalent in XSL FO.
docx4j doesn't currently have a layout algorithm.
[1]
http://www.documentinteropinitiative.or ... 6f299.aspx[2]
http://openiso.org/Ecma/376/Part4/2.6.5