Pdfmake: Does anyone know how to set the pageSize properly for a thermal printer?

Created on 20 May 2016  路  3Comments  路  Source: bpampuch/pdfmake

The printer size has width of 3 1/2''

Most helpful comment

The formula for calculating width and height values for a page is:
value in inch * 72
or
value in mm / 0.35277

See here: https://en.wikipedia.org/wiki/Point_(typography)

All 3 comments

I'm printing to a TPG A799. I set the width to 300, and the height to something large enough that it won't page wrap... like 3000. Just experiment a bit, you'll find the right size.

Thanks a lot. In the Wiki or demo page, it might be worth including the unit of these numbers. I was experimenting to find if they are inch, cm, mm, or pixel based.

The formula for calculating width and height values for a page is:
value in inch * 72
or
value in mm / 0.35277

See here: https://en.wikipedia.org/wiki/Point_(typography)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

CharlyPoppins picture CharlyPoppins  路  3Comments

kamilkp picture kamilkp  路  3Comments

jokris1 picture jokris1  路  3Comments

stefanmihoc picture stefanmihoc  路  3Comments

michaelqiji picture michaelqiji  路  3Comments