This repository has been archived by the owner on Jan 2, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
do not allow overriding the header/footer settings for cover pages
This was discovered in #1676, where using a command-line like: wkhtmltopdf cover cover.html --header-html header.html page.html output.pdf would override the settings for the cover page and not apply the --header-html for the URL page.html. This may be unexpected behavior for most users, but the manual clearly states that the options FOLLOW the URL/file name, as in: cover <input url/file name> [PAGE OPTION]... (page)? <input url/file name> [PAGE OPTION]... So, in the above example it actually means the following URL1: cover cover.html --header-html header.html URL2: page.html OUT: output.pdf To fix this, we parse the other page options for a cover page and then set the header/footer settings to blank values to ensure that they are not shown on a cover page.
- Loading branch information