ApacheCon Europe 2012

Rhein-Neckar-Arena, Sinsheim, Germany

5–8 November 2012

Improvements of Table Formatting in Writer

Jian Lee

Audience level:

Thursday 2:30 p.m.–3:15 p.m. in Press Room


Table Formatting in Writer has some problems, such as dead loop and time-comsuming. The speeker has made some improvements on these problems to make the table documents opened correctly or even more quickly.


Documents with some kinds of tables can not be handled correctly when formatted.

Generally, there are 2 problems:

1.If the table, across lots of pages, has only one cell and is set "Keep" attribute, or contains two many nested tables specified Row Height, dead loop will happen in Formatting and the documents will not be opened.

2.The table-splitting algorithm is very time-consuming and does lots of unnecessary jobs.

Thus The speeker has made some improments:

1.To make sure the table-splitting algorithm work correctly. Then the documetns can be rightly opened.

2.Remove the unnecessary jobs from the algorithm, and the time cost will be reduced by almost 50%.