BCcampus / pressbooks-mpdf

[UNMAINTAINED] open source HTML to PDF conversion
GNU General Public License v2.0
7 stars 7 forks source link

tocs won't export #50

Closed Gotomary closed 6 years ago

Gotomary commented 6 years ago

mPDF won’t export my table of contents when creating a PDF.

Will you be able to help point me in the right direction as to how to rectify this?

I have tried looking this up on the internet, but there has been no solution.

I’m using Pressbooks Version 4.5.1 and Pressbooks mPDF Version 3.0.0. and Wordpress Version 4.9.4.

I have ticked Display table of contents in the mPDF options tab in Theme Options.

The chapters have names and the parts are not hidden.

Thank you in advance.

System Information

bdolor commented 6 years ago

thanks @Gotomary for reporting - will try and recreate and get back to you.

bdolor commented 6 years ago

@Gotomary

Gotomary commented 6 years ago

Hello,

Thank you for your reply.

I have ticked the PDF options Display table of contents, and the file class-pdf.php is uncommented on the line that was suggested. However, the TOC is still not exporting,

I have written in http://discourse.pressbooks.org and they suggested it could be a bug?

The XHTML file is http://book.phang.org/wp/march/open/download?type=xhtml and the PDF is http://book.phang.org/wp/march/open/download?type=mpdf

screenshot

Thanks again for your help.

bdolor commented 6 years ago

sorry, could you try commenting out line 600?

Gotomary commented 6 years ago

Sorry, wasn't too sure what uncommenting meant (I'm a newbie) so thank you for that. It works!

Have a lovely day. :)