electron-pos-printer
electron-pos-printer copied to clipboard
Page Size
Please assist me center the contents
const options = { preview: false, // Preview in window or print width: widthPage, // width of content body margin: "0 0 0 0", // margin of content body copies: 1, // Number of copies to print printerName: printerName, // printerName: string, check it at webContent.getPrinters() timeOutPerLine: 400, silent: true, pageSize: { height: 75000, width: 100000 } };
@Hubertformin Please assist
Had no response
Hello @sKY02644 Please forgive for my delay, I saw you issue and I am working on fixing it ASAP!!
Thank you for your response it will do me much good
because i had to fall back on a different package but once its fixed i will move back to urs
thanks again
On Mon, Jan 10, 2022, 10:21 AM Hubert Formin @.***> wrote:
Hello @sKY02644 https://github.com/sKY02644 Please forgive for my delay, I saw you issue and I am working on fixing it ASAP!!
β Reply to this email directly, view it on GitHub https://github.com/Hubertformin/electron-pos-printer/issues/61#issuecomment-1008726335, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGC5TZITWLVIWH2R7J5CM3DUVKXKZANCNFSM5LMGYNRA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you were mentioned.Message ID: @.***>
@Hubertformin
Hope all is well
Please how far with the fix
Are you sure you are setting the paper size correctly? It seems to me that the defined width is larger than what is needed for your paper.
Have you tried decreasing the width? In my case, if I decrease the width, I don't need to center it, since the content will occupy all printable area.
Can you try again?
does it support 80mm paper now?
Yes, it does. You can set the pageSize.width
to 303
. That should work well.
okay i will take note of this and use it
i was hacking my way using all sorts of packages
will give it a try end of this week or early next month thanks boss πππ
pageSize.width to 303mm or?
@sKY02644 Yes, set the pageSize: {width: 303, height: 1200}
For example, that is approximate dimension of 80mm paper
thank you soo much
i will revert laterπ―