-
Hi, Is it possible to remove unwanted margin at the top of header? At the moment it look like in the screenshot. In html, body {
margin: 0;
padding: 0;
font-size: 13pt;
} In PHP: $request = new HTMLRequest($contentHtml);
$request->setPaperSize(Request::A4);
$request->setHeader($headerHtml);
$request->setFooter($footerHtml); Gotenber version 6.x
$request->setMargins(Request::NO_MARGINS); |
Beta Was this translation helpful? Give feedback.
Answered by
gulien
Sep 9, 2021
Replies: 1 comment 5 replies
-
Hello @idenisovs, Could you try this solution puppeteer/puppeteer#4132 (comment)? If it works, I’ll update the documentation 😄 |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
idenisovs
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello @idenisovs,
Could you try this solution puppeteer/puppeteer#4132 (comment)? If it works, I’ll update the documentation 😄