splitbrain / dokuwiki-plugin-dw2pdf

A fork of Luigi Micco's PDF export plugin for DokuWiki
http://www.dokuwiki.org/plugin:dw2pdf
55 stars 68 forks source link

Remove header and footer from (automatic) blank page after cover #327

Open librilex opened 6 years ago

librilex commented 6 years ago

When using cover.html, an blank page is automatically added before the table of content is inserted. This setting is perfect so that the the TOC begins on an uneven page. However, I would like the blank page to be completely blank. At the moment, the header and footer of header.html and footer.html are shown on the blank page. How could I configure dw2pdf so that this blank page is completely blank?

Klap-in commented 6 years ago

I guess this is not a straight forward thing to create with current dw2pdf setup. But maybe you can write cover.html a such manner that you only apply @page ... {} styles there.. Please see: https://mpdf.github.io/paging/using-page.html

hiyff commented 6 years ago

I have the same problem.

With the help of cover.html I create a cover page. On this cover page I prevent the appearance of my normal headers and footers created under header.html and footer.html by using footer_first.html and header_first.html.

This works very well apart from the automatically generated blank pages after the cover page and the table of contents. On these blank pages the header and footer of header.html and footer.html appear. Is it possible to bypass this and get really empty pages?

Klap-in commented 6 years ago

My guess is that by using a different set of @page{} syntaxes you can do that. But that is currently not supported in the dw2pdf plugin.

pull request is welcome of course ;-) ...