I have an html where it should be converted to pdf consisting page numbers in it .
i am unable to create a table of contents which has the headings of the page and the page number from where it is starting in the pdf
can any one please help me , thanks in advance
What I have tried:
i tried appending the html to newly created window and added the content of inner text and thereon tried printing it by using window.print() , and from that window saving as pdf.
keeping this aside ,
i have also tried converting an html to pdf with the library called htmltopdf and tried giving page numbers and then fetching the details like pagenumbers and headers for table of contents , i t didnt worked for me
iam expecting some sort of suggestions or a solution for this , thanks in advance