Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Add Page number / total page counters generated inside the PDF using Dompdf ?

Mohamed Ashif February 20, 2019

c.PNG

In Style <style>

#pagenumber:before {
content: "page " counter(page) " of " counter(pages);
}

</style>

 

<body>

<p><span id="pagenumber"/> </span></body>

 

In PDF its come 

Page 1 of 0 

Any Solution ??

1 answer

0 votes
Spencer Hudson
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 18, 2025

are the other variables that can be included in the page , eg. 

- page title 

- date 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events