odftoolkit icon indicating copy to clipboard operation
odftoolkit copied to clipboard

page numbers can have value "auto"

Open winterrifier opened this issue 11 months ago • 2 comments

StyleParagraphPropertiesElement.getStylePageNumberAttribute() may throw a NumberFormatException when page number has value "auto", which is a valid value according to https://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html and https://docs.oasis-open.org/office/OpenDocument/v1.3/os/part3-schema/OpenDocument-v1.3-os-part3-schema.html

I had to use the XML API to read the attribute directly to prevent that exception as workaround.

winterrifier avatar Feb 04 '25 06:02 winterrifier

@svanteschubert can't assign ticket to you as requested

winterrifier avatar Feb 04 '25 07:02 winterrifier

@winterrifier My bad, I was tired! :-)

As mentioned in https://listarchives.odftoolkit.org/dev/msg00110.html This is a generation error that I have been working on - refactored complete generation -, but it is unfinished business. I will aim to switch to it soonish and give you at least a status on what is blocking and a chance to participate. Sorry for the delay..,

svanteschubert avatar Feb 04 '25 09:02 svanteschubert