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

HTML followed by RAW does not work as expected #1020

Open
tresf opened this issue Sep 6, 2022 · 3 comments
Open

HTML followed by RAW does not work as expected #1020

tresf opened this issue Sep 6, 2022 · 3 comments
Assignees
Labels

Comments

@tresf
Copy link
Contributor

tresf commented Sep 6, 2022

qz.print(config, [
    { type: "pixel", format: "html", flavor: "plain", data: '<h1>Hello</h1>' },
    { flavor: "hex", data: "x07" },
    { flavor: "hex", data: "x1Bx64x33" },
]);

The above example will render the HEX directly onto the receipt.

A workaround (use multiple arrays):

qz.print(config, [
    [
        { type: "pixel", format: "html", flavor: "plain", data: '<h1>Hello</h1>' }
    ],
    [
        { flavor: "hex", data: "x07" },
        { flavor: "hex", data: "x1Bx64x33" }
    ],
]);
@tresf tresf added the bug label Sep 6, 2022
@mayankdargan03

This comment was marked as off-topic.

@tresf
Copy link
Contributor Author

tresf commented Oct 26, 2022

@mayankdargan03 let's please keep discussions on the mailing list: https://groups.google.com/g/qz-print/c/UXqrAGmHWfg

@mayankdargan03
Copy link

Sure @tresf !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants