gmanny / Pechkin

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

Table of Contents (ToC) feature working? #34

Open mattki opened 11 years ago

mattki commented 11 years ago

Does anyone know if the table of contents feature of wkhtmltopdf works with Pechkin wrapper? It's likely that I just don't know what I'm doing.

I tried to enable a table of contents first by setting objConf.SetTocXsl(xsl);

Where xsl refers to the default xsl file dumped from the command line version of wkhtmltopdf.exe.

This didn't change the output at all, so I tried objConf.SetCreateToc(true); in combination with the above. This creates a single page PDF instead of my usual 100 page PDF and is just the default empty ToC page. As SetCreateToc is deprecated that is not surprising.

vhogendoorn commented 10 years ago

@mattki, I'm getting started with this Pechkin wrapper, did you solve your 'problem'? Because I don't know how I'll get this to work..