Skip to content

Feature: Custom headers and footers for the last page - #546

Open
eduardomozart wants to merge 1 commit into
splitbrain:masterfrom
eduardomozart:feature-last-page
Open

Feature: Custom headers and footers for the last page#546
eduardomozart wants to merge 1 commit into
splitbrain:masterfrom
eduardomozart:feature-last-page

Conversation

@eduardomozart

@eduardomozart eduardomozart commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

This PR introduces support for header_last.html and footer_last.html templates.

The last-page selector is injected via <pagebreak page-selector="last-page" /> which is only added when back.html exists. This allows template authors to define custom headers and footers that only apply to the very last page of the exported document.

The template README.txt has been updated to document these new files.

Sample: https://github.com/eduardomozart/ScriptUtil/tree/master/Scripts/DokuWiki/dw2pdf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant