java - Adding Header or Footer on every page using ITextRenderer from HTML -
i'm creating html report usgin freemarker, , produce pdf html using itextrenderer.
itextrenderer renderer = new itextrenderer(); renderer.setdocumentfromstring(html); renderer.layout(); renderer.createpdf(baospdf);
i have table in html, header shows on every page using css classes:
thead { display:table-header-group }
is possible same trick arbitrary section of document? (let say, div) i'ld keep html vanilla, , identify "header" , "footer" want see on every page using css.
is possible, css?
perhaps should have at
http://developers.itextpdf.com/content/itext-7-examples/converting-html-pdf
it gives few examples of converting html pdf. including loading external stylesheet.
Comments
Post a Comment