How do I configure to print for a thermal paper printer with react-to-print?
Asked Answered
S

0

7

I'm working in a React page, and I'm using react-to-print for printing. But now I need to print in a thermal paper printer. Those that prints tokens, tickets, etc.

I've already looked over this question, but I still don't know which size to set or how to create a size.

And I've already looked over the source code, to learn more about the argument pageStyle and found this as default:

"@page { size: auto;  margin: 0mm; } @media print { body { -webkit-print-color-adjust: exact; } }"

But I didn't figured out how to set this argument to print at thermal printer size.

What argument do I pass in pageStyle parameter to print in that size?
Is there a list of page styles or a way of configuring a new page style?
How do I test this without a printing?

Schober answered 22/5, 2019 at 21:23 Comment(2)
Did you find a solution to this yet?Braley
@RahulBhanushali NoSeed

© 2022 - 2024 — McMap. All rights reserved.