How to change the print page size?

Asked

Viewed 19 times

-2

I’m printing on a thermal printer and it’s coming out all right, but there’s a blank space, I think it’s the size of the page.

Is it possible to set the page size even if the printer is set to a different size? For example, the printer is set to A4, but the smaller print appears at 80mm x 297mm.

I’m using:

@media print{
  body{
    margin:0px;
    padding:0px;
    width:80mm;
    height:297mm;
  }
}
  • Probably using font-size: (which supports measures in pt, em, rem, px, etc). To proceed with the question is important [Dit] and present a [mcve] of the problem, being clear and objective where it failed to use it. Thank you for understanding.

  • Guilherme I refer to the page size, the elements are correct, the page size is too big I wanted to decrease the height of it

  • Without a [mcve] problem there is no way to determine or help, please if [Edit] the question and understand what is minimum reproducible example we will surely be able to help.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.