<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Display header footer showing improper]]></title><description><![CDATA[<p>I am using the chrome-pdf recipe and the jsreport-client.<br />
I have already successfully merged the header, footer and the main body together, however the footer and the header seems to be rendered in a wrong way. Showing the result as the following.<br />
<img src="https://i.imgur.com/JE8go0c.png" alt="alt text" class="img-responsive img-markdown" /></p>
<p>I have no idea why they are rendering under the main templates.<br />
Here a the codes to reproduce the issue.</p>
<p>index.js<br />
...<br />
<strong>client.render({<br />
template: {<br />
content: ReadContent(&quot;result.html&quot;),<br />
recipe: &quot;chrome-pdf&quot;,<br />
engine: &quot;handlebars&quot;,<br />
chrome: {<br />
&quot;scale&quot;:				        1,<br />
&quot;displayHeaderFooter&quot;:  true,<br />
&quot;headerTemplate&quot;:		    ReadContent(&quot;result_header.html&quot;),<br />
&quot;footerTemplate&quot;:		    ReadContent(&quot;result_footer.html&quot;),<br />
&quot;printBackground&quot;:		  true,<br />
&quot;pageRanges&quot;:			      &quot;&quot;,<br />
&quot;format&quot;:				        &quot;A4&quot;,<br />
&quot;width&quot;:				        &quot;&quot;,<br />
&quot;height&quot;:				        &quot;&quot;,<br />
&quot;marginTop&quot;:			      &quot;20px&quot;,<br />
&quot;marginRight&quot;:			    &quot;20px&quot;,<br />
&quot;marginBottom&quot;:			    &quot;20px&quot;,<br />
&quot;marginLeft&quot;:			      &quot;20px&quot;,<br />
&quot;waitForJS&quot;:			      false,<br />
&quot;waitForNetworkIddle&quot;:	false,<br />
},<br />
helpers: <code></code>,<br />
},</strong><br />
...</p>
<p>Does anyone encountered this issue before? I have suffered from this issue for days already :('</p>
]]></description><link>https://forum.jsreport.net/topic/694/display-header-footer-showing-improper</link><generator>RSS for Node</generator><lastBuildDate>Mon, 18 May 2026 22:19:26 GMT</lastBuildDate><atom:link href="https://forum.jsreport.net/topic/694.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 03 Sep 2018 08:30:37 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Display header footer showing improper on Invalid Date]]></title><description><![CDATA[<p>I am using the chrome-pdf recipe and the jsreport-client.<br />
I have already successfully merged the header, footer and the main body together, however the footer and the header seems to be rendered in a wrong way. Showing the result as the following.<br />
<img src="https://i.imgur.com/JE8go0c.png" alt="alt text" class="img-responsive img-markdown" /></p>
<p>I have no idea why they are rendering under the main templates.<br />
Here a the codes to reproduce the issue.</p>
<p>index.js<br />
...<br />
<strong>client.render({<br />
template: {<br />
content: ReadContent(&quot;result.html&quot;),<br />
recipe: &quot;chrome-pdf&quot;,<br />
engine: &quot;handlebars&quot;,<br />
chrome: {<br />
&quot;scale&quot;:				        1,<br />
&quot;displayHeaderFooter&quot;:  true,<br />
&quot;headerTemplate&quot;:		    ReadContent(&quot;result_header.html&quot;),<br />
&quot;footerTemplate&quot;:		    ReadContent(&quot;result_footer.html&quot;),<br />
&quot;printBackground&quot;:		  true,<br />
&quot;pageRanges&quot;:			      &quot;&quot;,<br />
&quot;format&quot;:				        &quot;A4&quot;,<br />
&quot;width&quot;:				        &quot;&quot;,<br />
&quot;height&quot;:				        &quot;&quot;,<br />
&quot;marginTop&quot;:			      &quot;20px&quot;,<br />
&quot;marginRight&quot;:			    &quot;20px&quot;,<br />
&quot;marginBottom&quot;:			    &quot;20px&quot;,<br />
&quot;marginLeft&quot;:			      &quot;20px&quot;,<br />
&quot;waitForJS&quot;:			      false,<br />
&quot;waitForNetworkIddle&quot;:	false,<br />
},<br />
helpers: <code></code>,<br />
},</strong><br />
...</p>
<p>Does anyone encountered this issue before? I have suffered from this issue for days already :('</p>
]]></description><link>https://forum.jsreport.net/post/3430</link><guid isPermaLink="true">https://forum.jsreport.net/post/3430</guid><dc:creator><![CDATA[knm1993]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Display header footer showing improper on Invalid Date]]></title><description><![CDATA[<p>Please share the demo in playground.<br />
<a href="https://playground.jsreport.net" rel="nofollow">https://playground.jsreport.net</a></p>
]]></description><link>https://forum.jsreport.net/post/3432</link><guid isPermaLink="true">https://forum.jsreport.net/post/3432</guid><dc:creator><![CDATA[jan_blaha]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Display header footer showing improper on Invalid Date]]></title><description><![CDATA[<p><a href="https://playground.jsreport.net/w/knm1993/8yT4amr0" rel="nofollow">https://playground.jsreport.net/w/knm1993/8yT4amr0</a></p>
<p>thx for reply, I have reproduced the situation with the playground in the above url</p>
]]></description><link>https://forum.jsreport.net/post/3435</link><guid isPermaLink="true">https://forum.jsreport.net/post/3435</guid><dc:creator><![CDATA[knm1993]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Display header footer showing improper on Invalid Date]]></title><description><![CDATA[<p>just for the record, the problem with your example is that your template is using top/bottom margin in css (<code>body</code>) and you don't have enough space for the headers (margin top, bottom options), the css values were overlapping the others. i fixed the example here: <a href="https://playground.jsreport.net/w/anon/zMWU0DVp" rel="nofollow">https://playground.jsreport.net/w/anon/zMWU0DVp</a></p>
]]></description><link>https://forum.jsreport.net/post/3442</link><guid isPermaLink="true">https://forum.jsreport.net/post/3442</guid><dc:creator><![CDATA[bjrmatos]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Display header footer showing improper on Invalid Date]]></title><description><![CDATA[<p>ahhh, I see... I have forgotten about the rendering codes, there are margin options too...<br />
Thank you very much for pointing out the problem!</p>
]]></description><link>https://forum.jsreport.net/post/3448</link><guid isPermaLink="true">https://forum.jsreport.net/post/3448</guid><dc:creator><![CDATA[knm1993]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>