Add zebra browser print libs

This commit is contained in:
Eden Kirin
2023-07-31 15:40:21 +02:00
parent a8545c2546
commit fb34e83f6d
4 changed files with 82 additions and 20 deletions

View File

@ -157,7 +157,6 @@ async function createInternalStickerZPL(options) {
width: template.agencyLogo.dimensions.width,
height: template.agencyLogo.dimensions.height,
});
console.log(agencyLogoZPL);
const qrCodeZPL = await imageToGRF(options.qrCodeUrl, {
width: template.qrCode.dimensions.width,
@ -170,19 +169,3 @@ async function createInternalStickerZPL(options) {
...options,
});
}
const options = {
qrCodeUrl: "/assets/qr-code-example.jpeg",
agencyLogoUrl: "/assets/agenzia-entrate-logo-mono.png",
companyName: "Vandelay Industries",
machineModel: "Model XL-123",
masterSystemId: "master-system-id",
extMasterSystemId: "ext-msid",
};
const main = async function () {
const zpl = await createInternalStickerZPL(options);
document.querySelector(`textarea[name="zpl"]`).value = zpl;
};
main();