Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to set custom text #118

Open
vresetnikov opened this issue Mar 24, 2023 · 0 comments
Open

Unable to set custom text #118

vresetnikov opened this issue Mar 24, 2023 · 0 comments

Comments

@vresetnikov
Copy link

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
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant