Issue is margin mostly? (Check image for reference)
mura shag na center which is kalas ug space,
Ang current nga printer options sa printer for rgs is 500 dpi, both vert and horizontal, tapos ang printer options sa amo is 250 dpi.
(left: 500dpi) almost same as rgs printer
(right: 250dpi) almost same as rgs previous resibo sorry pixelated android 👍
settings for my current setup (stash sa ako pc)
URL.ts
export const API_BASE_URL = 'https://staging.royalglasssupply.com/api';set ni para di magamit ang sa production nga url
main.ts
ipcMain.on('print-invoice', (event, data) => {
pageSize: 'A4', //cut into half ang paper para tipid since mao pd ila ginagamit mostly pag gamay orders
margins: { marginType: 'none' } edit margins? di ko sure kay di mo work ang custom sa ako
copies: 1,para less paper
dpi: { horizontal: 250, vertical: 250 }, current setup sa amo printer, adjust lng para ma same sa pag print
Current Electron Printing issues
Issue is margin mostly? (Check image for reference) mura shag na center which is kalas ug space, Ang current nga printer options sa printer for rgs is 500 dpi, both vert and horizontal, tapos ang printer options sa amo is 250 dpi.
settings for my current setup (stash sa ako pc)
URL.ts
export const API_BASE_URL = 'https://staging.royalglasssupply.com/api';
set ni para di magamit ang sa production nga urlmain.ts
ipcMain.on('print-invoice', (event, data) => {
pageSize: 'A4', //cut into half ang paper para tipid since mao pd ila ginagamit mostly pag gamay orders
margins: { marginType: 'none' }
edit margins? di ko sure kay di mo work ang custom sa akocopies: 1,
para less paperdpi: { horizontal: 250, vertical: 250 },
current setup sa amo printer, adjust lng para ma same sa pag print