allcolor / YaHP-Converter

YaHP is a Java library that allows you to convert an HTML document into a PDF document.
GNU Lesser General Public License v2.1
56 stars 23 forks source link

Multi line headers #49

Open venkatarnunna opened 7 years ago

venkatarnunna commented 7 years ago

Does YaHP-Converter support multi line headers? I have tried adding a new row to in the table for Header and that does not seem to work. Please advise if there is any other way of achieving this. In my actual use case the Line2 of header is dyanamic.

headerFooterList
                    .add(new IHtmlToPdfTransformer.CHeaderFooter(
                            "<table width=\"100%\" height=\"50%\"><tbody><tr><td align=\"center\">"
                                    + "Line 1</td>"
                                    + "</tr><tr><td>Line2</td></tr></tbody></table>"
allcolor commented 7 years ago

Hi, it has to fit in the margin.

Regards, Quentin Anciaux

Le 6 mars 2017 20:58, "venkatarnunna" notifications@github.com a écrit :

Does YaHP-Converter support multi line headers? I have tried adding a new row to in the table for Header and that does not seem to work. Please advise if there is any other way of achieving this. In my actual use case the Line2 of header is dyanamic.

headerFooterList .add(new IHtmlToPdfTransformer.CHeaderFooter( "<table width=\"100%\" height=\"50%\"><td align=\"center\">"

  • "Line 1"
  • "Line2"

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/allcolor/YaHP-Converter/issues/49, or mute the thread https://github.com/notifications/unsubscribe-auth/ABJ5Bx9zHk5qbWrGV94FqbG75qKrMSGnks5rjGV2gaJpZM4MUnqU .

venkatarnunna commented 7 years ago

Thank you very much. By adding the margin we were able to show the multi line header in the PDF. Currently the Header is shows up on all pages. Is there way to not show the header on first page of the PDF?