react-native-star-prnt icon indicating copy to clipboard operation
react-native-star-prnt copied to clipboard

Can't print bitmap and barcode on the same line

Open AngeloMateus opened this issue 5 years ago • 2 comments

I know the SDK allows it because the sample prints from the SDK app do it. I'm trying to print a barcode with a bitmap image side by side but every append command starts in a newline and I'm not sure how to use appendBitmap and appendBarcode with appendMultiple.

       commands.push({ appendCutPaper: 'PartialCut'});
       commands.push({
            appendBarcode: "{B" + '88712365444',
            BarcodeSymbology: 'Code128',
            BarcodeWidth: 'Mode1',
            height: 100,
            hri: true,
        });
        commands.push({
            appendBitmap: logo.data,
            width: 100,
            bothScale: true,
            diffusion: true,
        });

IMG_2047

AngeloMateus avatar Jun 27 '19 14:06 AngeloMateus

I think I faced this issue before but couldn’t find a workaround. Might need someone to look into it maybe try again to see if it is possible

infoxicator avatar Jun 27 '19 16:06 infoxicator

Barcodes on receipts should be standardized. You shouldn't use any artwork at the same line, because cheaper readers can find it distracting. However i will look into it later.

hunwalk avatar Jul 24 '19 09:07 hunwalk