Margin added on print view of PDF #3264
Unanswered
jenb-jbcole
asked this question in
Q&A
Replies: 2 comments 1 reply
-
What are your print settings? If you "fit to page" I believe Chrome will fit the entire PDF (including margins) inside the boundaries of the printable area. You'll want to print the PDF "actual size" instead to have it fill the paper. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
We are having this issue where generating the PDF looks ok on Chrome, but as soon as the user tries to print it, it adds margin left, right and bottom of paper. We are setting the default paper size to be A4, and this is also what the print view is using, so it's confusing why this is happening.
Additionally, I saw people suggesting
@page {margin:0px}
but this did not work. I'm not actually sure if there's another setup needed to get this@page
syntax to work? All I know is that adding it to my css file made no difference (any other styles such as@page {background-color:red}
for example does not work either)Beta Was this translation helpful? Give feedback.
All reactions