For example Page 1 of 5
.
There's an example online of how to get teh Page 1
part but not the of 5
part. This is it:
.pagenum:before { content: "Page " counter(page); }
I'm using version 0.6 and $PAGE_NUM
and $PAGE_COUNT
does not work.
For example Page 1 of 5
.
There's an example online of how to get teh Page 1
part but not the of 5
part. This is it:
.pagenum:before { content: "Page " counter(page); }
I'm using version 0.6 and $PAGE_NUM
and $PAGE_COUNT
does not work.
In php, you can access dompdf variables:
more info http://code.google.com/p/dompdf/wiki/Usage
For people coming here using a new version of DomPdf
This means you have to create a new instance of
Options
classAnd then you may enable PHP inline using the following line
The rest of the codes are correct and will show a page number and page count
Update As pointed out by @london-smith, this also works for DomPDF 0.8.1