php-chrome-html2pdf icon indicating copy to clipboard operation
php-chrome-html2pdf copied to clipboard

Feature request: coverPageTemplate option

Open hakimio opened this issue 7 years ago • 2 comments

If it's possible it would be really nice to have an option to specify cover page html template. Cover page unlike the rest of the pages shouldn't have any header/footer and margins. I would like to be able to use full page image on the cover page and have footers and headers on the rest of the pages.

hakimio avatar Apr 20 '18 11:04 hakimio

Unfortunately, puppeteer doesn't offer any option to treat the first page differently than other pages. It's probably doable with some hacks, but can't guarantee anything. Will have a look at this once I have some time, otherwise PRs are appreciated.

spiritix avatar Apr 20 '18 14:04 spiritix

There seems to be a bug in Chromium which needs to be resolved first, see here: https://github.com/GoogleChrome/puppeteer/issues/2480

spiritix avatar May 24 '18 07:05 spiritix