XWIKI-11418: Custom PDF header/footer/cover get the PDF template itself as $tdoc
Fixed