Add zebra browser print libs
This commit is contained in:
@ -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();
|
||||
|
||||
Reference in New Issue
Block a user