electron-pos-printer icon indicating copy to clipboard operation
electron-pos-printer copied to clipboard

Page Size

Open sKY02644 opened this issue 2 years ago β€’ 6 comments

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 } };

WhatsApp Image 2022-01-06 at 12 19 43 PM

sKY02644 avatar Jan 06 '22 12:01 sKY02644

@Hubertformin Please assist

sKY02644 avatar Jan 06 '22 12:01 sKY02644

Had no response

sKY02644 avatar Jan 10 '22 10:01 sKY02644

Hello @sKY02644 Please forgive for my delay, I saw you issue and I am working on fixing it ASAP!!

Hubertformin avatar Jan 10 '22 10:01 Hubertformin

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: @.***>

sKY02644 avatar Jan 10 '22 21:01 sKY02644

@Hubertformin

Hope all is well

Please how far with the fix

sKY02644 avatar Jun 21 '22 14:06 sKY02644

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.

davimatos avatar Aug 10 '22 13:08 davimatos

Can you try again?

Hubertformin avatar Oct 27 '22 13:10 Hubertformin

does it support 80mm paper now?

sKY02644 avatar Oct 27 '22 13:10 sKY02644

Yes, it does. You can set the pageSize.width to 303. That should work well.

Hubertformin avatar Oct 27 '22 13:10 Hubertformin

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 avatar Oct 27 '22 13:10 sKY02644

@sKY02644 Yes, set the pageSize: {width: 303, height: 1200} For example, that is approximate dimension of 80mm paper

Hubertformin avatar Oct 28 '22 06:10 Hubertformin

thank you soo much

i will revert laterπŸ’―

sKY02644 avatar Oct 28 '22 06:10 sKY02644