Click here to Skip to main content
15,886,071 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900