Hello,

I came across a nice API called iText which is able to produce PDF-documents from my java-code, this API makes it also possible to create an HTML document.
I want these document to look the 'same', as far as possible.
And I am satisfied with the look.

What I would like to do though is to let the table fill out my
page when I hit the Print button, Am I able to do that ?
Can I set my HTML document or Table to be exactly as wide and as long as an A4-doc ?

best regards, i

Member Avatar for GreenDay2001

with HTML there's no problem, i suppose if so use can use some good softwares somtimes shipped with your priter such as Cannon WebPrint. With pdf make sure that the dimensions is matching with the page if it is check borders in the print option

It depends on the structure of your HTML. It is possible to size container elements, such as tables and DIVs, using CSS.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.