symbology icon indicating copy to clipboard operation
symbology copied to clipboard

Unable to set custom text

Open vresetnikov opened this issue 1 year ago • 0 comments

Hello,

The documentation states that the text property in the config object allows customizing the human readable text shown under the barcode. However, it appears that setting anything to the property has no effect:

try {
        const { data } = await createStream({
            symbology: SymbologyType.CODE128,
            text: "custom_text", //has no effect, original input used for barcode generation will appear instead
        }, input, OutputType.PNG)

        console.log('Result: ', data)
        return data;
} catch (err) {
        console.error('Error: ', err)
        return undefined
}

vresetnikov avatar Mar 24 '23 13:03 vresetnikov