I am working on cleaning up a few projects this weekend, including JDoctopdf. There are two items that need attention. One is that I would like the pictures to maintain their size better, I am not sure if that is really fixable or not. The second is that I would like to change the way I handle table borders. As it is the table border issue is pretty hopeless, there are some border and cell "style" properties but my attempts to reverse engineer this have all failed. Sometimes I can almost detect whether a border exists or not, but further testing shows it just doesn't work 100% of the time either way.
The problem is that normally tables have and need borders. It makes their content easier to read. However sometimes tables are used for formatting, for example creating two columns for a header, and in this case adding borders looks stupid. So I had an idea, which is that since I can't detect table borders I will make any table with one row have no border and and tables with two or more rows have a border.
It's not perfect but I think it's the best I can do with the libraries as is.
And I'll probably look at integrating docx support as well. That would be pretty useful I think.
|© 2008 Max Stocker|