Need to display page numbers in Table of contents

828 views Asked by At

I am just printing the HTML page, I need to show the page numbers opposite to the titles in Table of contents. I investigated a lot, but couldn't find a proper solution. While investigating I found target-counter but it is not working for me. Seems it is explicitly providing support for PrinceXML, but I am using puppeteer to convert HTML content to PDF, since PrinceXML doesn't support .Net Core, I have opted Puppeteer Sharp. So is there any way I could get page numbers in the table of contents.

enter image description here

0

There are 0 answers