Thread:Extension talk:Pdf Export/Crash for customized TOC/reply

Solution found:

Go to your PdfExport\converters\xxxxxConverter.php (I am using DomPdfConverter.php here), make some changes:

Then, the custom TOC will be removed before printing.

Besides, you may also want to customize the printing so that the TOC will always be in a certain style. It you want to do so, change the into  to force a TOC to display at the beginning of the page.

e.g. Because the magic word will render a , the style and id cannot be customized unless overwriting the original styles. And achieving this isn't really brute-force.

Go to your xxxxConverter.php,

And then, go to the directory /extensions/PdfExport/converters/ and open a new file called PdfExport.css. Within it, define your stuff, like this:

The above code will render a table of contents without the underlining and blue colour. You are free to customize it this way.

Also, while you are at it, you may also want to enable printing the title of the page.

Go back to the xxxxConverter.php, change the modified line further to include something like this:

This will display an xx-large, bold and centred title on top of the Pdf.