I'm currently working with the Pechkin library for creating pdf-files based on html. It all works great.
But I want to add one thing, a table of contents (TOC). But I can't get this working. With only wkhtmltopdf it's easy to do:
wkhtmltopdf toc --xsl-style-sheet toc.xsl index.html index.pdf
But with Pechkin it won't work. I have already a bookmark (which works in Adobe Reader), but it's not a real TOC what I want. I've tried to add
ObjectConfig().SetTocXsl("tocXslStyleSheetUri")
But it seems to have no effect.
I also tried to work with:
ObjectConfig().SetCreateToc(true);
This will create an empty pdf because this function is obsolete.
So I get a nice pdf-result, but only without a Table of Content. Does anyone of you know how I get the TOC appear in my pdf-file?
I also asked this question as an issue on github, but because they're not always that quick with reacting, or doesn't react at all, I also asked the question here.
What if you create the table of contents on a seperate page and give its url to the
ObjectConfig
object . I can show you the code if required.