HTML to PDF / DOCX / RTF Java converter library › Forums › PD4ML v3 Archived Forums (Read Only) › HTML/CSS rendering issues › pd4ml:page.footer Inline tag not rendering
- This topic has 6 replies, 3 voices, and was last updated May 20, 2015
11:41:39 byPD4ML.
-
AuthorPosts
-
September 13, 2010 at 20:38#26451
I’m having trouble getting the Inline footers to work. I’ve been able to define footers through the API with no problem but, no matter what I do, i can’t get them to show up when i’ve defined them in the html. Page breaks work perfectly
I’d like to be able to put the footer on the last page of the document but, no matter what i do it will not display – anywhere. The html follows prior to pdf generation follows…
Version of PD4ML library: pd4ml.prof.dotnet20.324b2
Regards
<html> <link type="text/css" rel="Stylesheet" href="http://cobra/utopia/RateSheetStyle.css" xmlns="http://www.w3.org/TR/REC-html40" xmlns:h="http://www.w3.org/1999/xhtml" xmlns:s="urn:schemas-microsoft-com:xml-data" xmlns:pd4ml="https://pd4ml.com/tlds/pd4ml/2.6" /> <body> <div xmlns="http://www.w3.org/TR/REC-html40" xmlns:h="http://www.w3.org/1999/xhtml" xmlns:s="urn:schemas-microsoft-com:xml-data" xmlns:pd4ml="https://pd4ml.com/tlds/pd4ml/2.6"> <div> <table> <tr> <td style="padding-left:8px;padding-right:32px; "> <span style="font-size:10pt; font-weight:bold;">Factor A</span> </td> <td style="padding-left:8px;padding-right:32px; "> <span style="font-size:10pt; font-weight:bold;">Factor B</span> </td> </tr> </table> <table cellpadding="0" cellspacing="0" style="border-left:solid 1px black;"> <thead> <tr> <th class="header_InnerCell">Class</th> <th class="header_InnerCell">3/3</th> <th class="header_InnerCell">6/6</th> <th class="header_InnerCell">12/12</th> <th class="header_InnerCell">24/24</th> <th class="header_InnerCell">36/36</th> </tr> </thead> <tbody> <tr> <td class="row_Cell" style="border-right:solid 1px black; border-bottom:solid 1px black; text-align:center;">1</td> <td class="row_Cell" style="border-bottom:solid 1px black;border-right:solid 1px black;">396</td> <td class="row_Cell" style="border-bottom:solid 1px black;border-right:solid 1px black;">530</td> <td class="row_Cell" style="border-bottom:solid 1px black;border-right:solid 1px black;">748</td> <td class="row_Cell" style="border-bottom:solid 1px black;border-right:solid 1px black;">1042</td> <td class="row_Cell" style="border-bottom:solid 1px black;border-right:solid 1px black;">1515</td> </tr> <tr> <td class="row_Cell" style="border-right:solid 1px black; border-bottom:solid 1px black; text-align:center;">2</td> <td class="row_Cell" style="border-bottom:solid 1px black;border-right:solid 1px black;">429</td> <td class="row_Cell" style="border-bottom:solid 1px black;border-right:solid 1px black;">579</td> <td class="row_Cell" style="border-bottom:solid 1px black;border-right:solid 1px black;">810</td> <td class="row_Cell" style="border-bottom:solid 1px black;border-right:solid 1px black;">1134</td> <td class="row_Cell" style="border-bottom:solid 1px black;border-right:solid 1px black;">1666</td> </tr> <tr> <td class="row_Cell" style="border-right:solid 1px black; border-bottom:solid 1px black; text-align:center;">3</td> <td class="row_Cell" style="border-bottom:solid 1px black;border-right:solid 1px black;">467</td> <td class="row_Cell" style="border-bottom:solid 1px black;border-right:solid 1px black;">634</td> <td class="row_Cell" style="border-bottom:solid 1px black;border-right:solid 1px black;">882</td> <td class="row_Cell" style="border-bottom:solid 1px black;border-right:solid 1px black;">1238</td> <td class="row_Cell" style="border-bottom:solid 1px black;border-right:solid 1px black;">1835</td> </tr> <tr> <td class="row_Cell" style="border-right:solid 1px black; border-bottom:solid 1px black; text-align:center;">4</td> <td class="row_Cell" style="border-bottom:solid 1px black;border-right:solid 1px black;">589</td> <td class="row_Cell" style="border-bottom:solid 1px black;border-right:solid 1px black;">752</td> <td class="row_Cell" style="border-bottom:solid 1px black;border-right:solid 1px black;">1108</td> <td class="row_Cell" style="border-bottom:solid 1px black;border-right:solid 1px black;">1410</td> <td class="row_Cell" style="border-bottom:solid 1px black;border-right:solid 1px black;">2106</td> </tr> <tr> <td class="row_Cell" style="border-right:solid 1px black; border-bottom:solid 1px black; text-align:center;">5</td> <td class="row_Cell" style="border-bottom:solid 1px black;border-right:solid 1px black;">1251</td> <td class="row_Cell" style="border-bottom:solid 1px black;border-right:solid 1px black;">1719</td> <td class="row_Cell" style="border-bottom:solid 1px black;border-right:solid 1px black;">2661</td> <td class="row_Cell" style="border-bottom:solid 1px black;border-right:solid 1px black;">4282</td> <td class="row_Cell" style="color:white;">­</td> </tr> </tbody> </table> <pd4ml:page.break /> <table> <tr> <td style="padding-left:8px;padding-right:32px; "> <span style="font-size:10pt; font-weight:bold;">Factor C</span> </td> <td style="padding-left:8px;padding-right:32px; "> <span style="font-size:10pt; font-weight:bold;">Factor D</span> </td> </tr> </table> <table cellpadding="0" cellspacing="0" style="border-left:solid 1px black;"> <thead> <tr> <th class="header_InnerCell">Class</th> <th class="header_InnerCell">3/3</th> <th class="header_InnerCell">6/6</th> </tr> </thead> <tbody> <tr> <td class="row_Cell" style="border-right:solid 1px black; border-bottom:solid 1px black; text-align:center;">1</td> <td class="row_Cell" style="border-bottom:solid 1px black;border-right:solid 1px black;">455</td> <td class="row_Cell" style="border-bottom:solid 1px black;border-right:solid 1px black;">640</td> </tr> <tr> <td class="row_Cell" style="border-right:solid 1px black; border-bottom:solid 1px black; text-align:center;">2</td> <td class="row_Cell" style="border-bottom:solid 1px black;border-right:solid 1px black;">496</td> <td class="row_Cell" style="border-bottom:solid 1px black;border-right:solid 1px black;">704</td> </tr> <tr> <td class="row_Cell" style="border-right:solid 1px black; border-bottom:solid 1px black; text-align:center;">3</td> <td class="row_Cell" style="border-bottom:solid 1px black;border-right:solid 1px black;">539</td> <td class="row_Cell" style="border-bottom:solid 1px black;border-right:solid 1px black;">776</td> </tr> <tr> <td class="row_Cell" style="border-right:solid 1px black; border-bottom:solid 1px black; text-align:center;">4</td> <td class="row_Cell" style="border-bottom:solid 1px black;border-right:solid 1px black;">687</td> <td class="row_Cell" style="border-bottom:solid 1px black;border-right:solid 1px black;">929</td> </tr> <tr> <td class="row_Cell" style="border-right:solid 1px black; border-bottom:solid 1px black; text-align:center;">5</td> <td class="row_Cell" style="border-bottom:solid 1px black;border-right:solid 1px black;">1482</td> <td class="row_Cell" style="border-bottom:solid 1px black;border-right:solid 1px black;">2186</td> </tr> </tbody> </table> <pd4ml:page.break /> </div> </div> <pd4ml:page.footer height="-1" scope="skiplast" xmlns:pd4ml="https://pd4ml.com/tlds/pd4ml/2.6" xmlns:h="http://www.w3.org/1999/xhtml" xmlns:s="urn:schemas-microsoft-com:xml-data" xmlns="http://www.w3.org/TR/REC-html40"> <div style="margin-top:8px;"> <span style="font-size:10pt; font-weight:bold;">Footer [INLINE]</span> <hr class="thick" /> <table cellpadding="0" cellspacing="0" style="width:100%;font-size:8pt;"> <colgroup> <col width="70%" /> <col /> <col /> </colgroup> <tr> <td style="width:70%;background-color:#E9E9E9;">Option 1</td> <td style="background-color:#E9E9E9;"> <span /> </td> <td style="padding-right:4px;text-align:right;background-color:#E9E9E9;">200</td> </tr> <tr> <td style="width:70%;">Option 2</td> <td style=""> <span /> </td> <td style="padding-right:4px;text-align:right;">25</td> </tr> <tr> <td style="width:70%;background-color:#E9E9E9;">Option 3</td> <td style="background-color:#E9E9E9;"> <span /> </td> <td style="padding-right:4px;text-align:right;background-color:#E9E9E9;">75</td> </tr> <tr> <td style="width:70%;">Option 4</td> <td style=""> <span /> </td> <td style="padding-right:4px;text-align:right;">100</td> </tr> <tr> <td style="width:70%;background-color:#E9E9E9;">Option 5</td> <td style="background-color:#E9E9E9;"> <span /> </td> <td style="padding-right:4px;text-align:right;background-color:#E9E9E9;">150</td> </tr> <tr> <td style="width:70%;">Option 6</td> <td style=""> <span /> </td> <td style="padding-right:4px;text-align:right;">175</td> </tr> <tr> <td style="width:70%;background-color:#E9E9E9;">Option 7</td> <td style="background-color:#E9E9E9;"> <span /> </td> <td style="padding-right:4px;text-align:right;background-color:#E9E9E9;">75</td> </tr> <tr> <td style="width:70%;">Option 8</td> <td style=""> <span /> </td> <td style="padding-right:4px;text-align:right;">100</td> </tr> </table> <hr class="thick" /> </div> </pd4ml:page.footer> </body> </html>
September 15, 2010 at 19:03#28199<pd4ml:page.footer> and <pd4ml:page.header> tags do not impact current page (they applied to subsequent pages only). So if you place the definition to the very end of HTML, there is no pages anymore, to apply the footer.
In order to resolve the issue you need to place the footer definition immediately after opening
<body>tag or before opening<html>.May 13, 2015 at 09:44#28200pd4ml:page.footer and header Inline tag not rendering in Colffusion
I have code below to generate pdf, but why the header and footer is not display?
please help
thanks<pd4ml:transform screenWidth="#s_screenWidth#" pageFormat="#s_pageFormat#" pageOrientation="#Orientation#" pageInsets="#s_pageInsets#" enableImageSplit="#b_enableImageSplit#" inline="#b_inline#" fileName="#s_fileName#" encoding="#s_encoding#" interpolateImages="#b_interpolateImages#" pdfa=true > <body style="padding-top: 0; margin-top: 0"> <pd4ml:usettf from="java:fonts"/> <pd4ml:page_header scope="1"> test header </pd4ml:page_header> <pd4ml:pagefooter scope="1"> <cfoutput> <label>test footer</label> </cfoutput> </pd4ml:pagefooter> <cfoutput> test body page 1 <br> test body page 2 <br> test body page 3 <br> test body page 4 </cfoutput> </body> </pd4ml:transform>
May 13, 2015 at 10:11#28201Yes I have this problem too in coldfusion, when I try to use
<pd4ml:page.header scope="1">in coldfusion this generated errorso I update the tld file page_header to add the scope attribbutes like page.header
but after that, the header and footer still not show, anyone can help about this ??
May 13, 2015 at 10:19#28202A synonym for
<pd4ml:page.header>for strict environments is<pd4ml-page-header>. Give a try to it. And make sure you use PD4ML Pro, as PD4ML Std does not support inline headers/footers.May 20, 2015 at 02:13#28203yes I already use pd4ml pro.
Maybe someone has the example how to use
<pd4ml:page.header>in coldfusion which is workMay 20, 2015 at 11:41#28204We plan to refresh our Coldfusion instructions in the nearest future.
It is strange, that PD4ML works in general in your case, but headers/footers fail. Try to temporarily put
<pd4ml-page-break>just after<pd4ml-page-header>Does a header appear on the second PDF page?
-
AuthorPosts
The forum ‘HTML/CSS rendering issues’ is closed to new topics and replies.
