Replies: 1 comment 1 reply
-
Header and footer applies to all pages, and I cannot change this because it’s how Chromium is handling this feature. Only solution is to generate your cover independently and then merge the two PDF. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to convert HTML to PDF,this is my code,I want to exclude the header and footer from the cover page.
`
$request = Gotenberg::chromium('http://localhost:3000')
->pdf()
->skipNetworkIdleEvent()
->outputFilename('test')
->header(Stream::path('/mnt/c/Users/user/Desktop/header.html'))
->margins(0.7, 0.3, 0, 0)
->footer(Stream::path('/mnt/c/Users/user/Desktop/footer.html'))
->html(Stream::path('/mnt/c/Users/user/Desktop/index1.html'));
`
Beta Was this translation helpful? Give feedback.
All reactions