Hi
I'm making a documentation editor application where users can customize the look and contents of the documentation they create (including headers and footers).
I show the users what their content looks like in HTML and prince kindly converts it into a PDF.
The only problem I'm having is showing the user what their headers and footers look like in the HTML version.
It seems Prince uses a table 'like' structure for these areas i.e. cells which intelligently resize to fit the content. The top center could be 60% wide and the left and right would shrink to 20% each.
However in my HTML version my header elements (which are taken from the document and given to prince) can't be defined as a table and cells because prince only works with blocks.
I could define them as floated blocks but then I'd have to give them explicit widths (33%) which is ok in most cases but in the case above of a 60% wide center heading would cause ugly line wrapping.
Is there an 'elegant' way to match princes handling of the footer and headers in html?
I'm making a documentation editor application where users can customize the look and contents of the documentation they create (including headers and footers).
I show the users what their content looks like in HTML and prince kindly converts it into a PDF.
The only problem I'm having is showing the user what their headers and footers look like in the HTML version.
It seems Prince uses a table 'like' structure for these areas i.e. cells which intelligently resize to fit the content. The top center could be 60% wide and the left and right would shrink to 20% each.
However in my HTML version my header elements (which are taken from the document and given to prince) can't be defined as a table and cells because prince only works with blocks.
I could define them as floated blocks but then I'd have to give them explicit widths (33%) which is ok in most cases but in the case above of a 60% wide center heading would cause ugly line wrapping.
Is there an 'elegant' way to match princes handling of the footer and headers in html?