gmanny / Pechkin

.NET Wrapper for WkHtmlToPdf static DLL. Allows you to utilize full power of the library.
400 stars 128 forks source link

Adding Table of Contents (TOC) into PDF. #53

Open vhogendoorn opened 10 years ago

vhogendoorn commented 10 years ago

I'm currently working with the pechkin wkhtmltopdf plugin, and I'm stuck with one issue. I want to create a table of content and get this table of contents inside my pdf.

I've already a bookmark with some kind of TOC, but I really want a page with TOC within the pdf. With wkhtmltopdf this is easy to do:

wkhtmltopdf toc --xsl-style-sheet toc.xsl index.html index.pdf

But I don't see how I get this to work with pechkin. There's a function: ObjectConfig().SetTocXsl("tocXslStyleSheetUri"); but this doesn't do anything?

I hope someone can help me with this

matma commented 10 years ago

Hi, ATM try my fork: https://github.com/soneta/TuesPechkin, but I hope that it'll be merged to: https://github.com/tuespetre/TuesPechkin (look at issue: tuespetre/TuesPechkin#38)

radhikaag commented 9 years ago

Hi, What i noticed is while generating Table of Contents it generates for the first time but not if you clicked the button again . For this you need to rebuild the code and run again. Please let me know if someone can help me ..