Re: General Support for Percentage Values?

2018-08-15 Thread Eliot Kimber
If I manually set the @w:w value to the percentage string then I can get back the percentage and convert it to a double when the width type is set to percentage. But I think there really needs to be a method on CTTblWidth that can return an STPercentage, parallel to xgetWidth(), which returns a

Re: General Support for Percentage Values?

2018-08-15 Thread Eliot Kimber
(This is in the context of setting the width on XWPFTable.) I decided that the best (and simplest) approach would be to use strings to set the width value for "auto" and percentages, rather than creating a separate class that would just end up creating a percentage string anyway. This also matc

General Support for Percentage Values?

2018-08-15 Thread Eliot Kimber
I need to extend the options for setting table widths. Per the spec, a table's width can be an absolute measurement, a percentage value, or the keyword "auto". Right now XWPFTable.setWidth() only takes an integer. I'd like to extend it to take in addition a percentage value or the value "auto"

Any Idea Why Word Does not Preserve Leading or Trailing Space?

2018-08-15 Thread Eliot Kimber
In the DOCX I'm generating I have this pair of runs: If an applicant under subsection 38-79 Notice the leading space in the second run (" 38-79"). When I view this with Word for Mac (16.16) the space is not rendered. This seems like a bug, especially since space is preserve on the w:t element.