I have spent this week on improving the layout of the printed content.

The first and most important thing I have done is the horizontal
clipping. It alowed me to remove the fuzzy margins temporary solution.
If the content overflows the bottom edge two conditions are checked.
Firstly, whether it would fit in the full height of a page and
secondly whether it is of a type we want not to be cut. Among this I
numbered text boxes, boxes with objects(which are usually images),
boxes with gadgets and table cells. If the conditions are met the next
page is printed starting where the highest of all these starts.

Another thing I have been working on was the page loosening. I
concentrated on loosening tables as they are the most problematic type
of content (ie. blocks forced to be in one row). Now the text in the
tables is shrunken and loosened and the padding and margins are
removed as a first try.

The filename is created with the use of url_nice and the PDF's are
saved in the downloads directory. In case of unsuccessful saving the
corrupted file is deleted.

Now about some problems I encountered. It seems that after some
earlier changes (I suppose it was my last commit or joty's merge) the
PDF export stopped working on some pages and after this weeks commit
it became even worse. It will be my first job during this week.
Because this will be the debug/features week I would appreciate all of
your comments/requests, as time is limited some kind of prioritising
would be also very helpful. I'll continue with what was already
discussed here and on IRC plus bugs I have noticed by myself. After
this week I would like to have my project complete with only those
things left which won't disturb the user using the already implemented
functionality.

Adam

Reply via email to