KoolReport's Forum

Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines

Wrong docs on export/pagenum #341

Open michael opened this topic on on Jul 2, 2018 - 4 comments

michael commented on Jul 2, 2018

The docs show

<footer>
{pageNum} / {numPages}
</footer>

The pdf/embed code looks for

div.page-footer

<div class="page-footer" style='height:30px'>
<span>Page {pageNum}/{numPages}</span>
</div>

This works.

The docs don't, and ... ugh... this has cost me a lot of time, trying to figure out if it was me, or phantomjs, or something else. Nope. Out of date docs.

Hopefully this can save someone else some time. Please patch when you can.

KoolReport commented on Jul 2, 2018

Oh thank you for letting us know and so sorry for costing much of your time. I will tell dev.team to make change to document.

michael commented on Jul 2, 2018

thx. wasn't sure about pull request, but it's probably faster for your end because you'd know where it should be changed in all/any spots.

Future Lab commented on Aug 17, 2018

also exist a header option not described on the manual , for example

"header"=> array("contents"=> "<h5>Page {pageNum}/{numPages}</h5>","height"=>"11px")

this print one time a header report , at least on my tests

KoolReport commented on Aug 18, 2018

You are right, we do have this options. You are really an expert. It was added because in case we need to generate several same PDF content but needed different header and footer. We will add this information to documentation.

Build Your Excellent Data Report

Let KoolReport help you to make great reports. It's free & open-source released under MIT license.

Download KoolReport View demo
None yet

Export