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

Support for printing multiple labels in one call #10

Open
bayukartiko opened this issue Jan 7, 2025 · 1 comment
Open

Support for printing multiple labels in one call #10

bayukartiko opened this issue Jan 7, 2025 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@bayukartiko
Copy link

I am currently using the library and followed this example. In the example, labels are printed one at a time using a for loop, as shown below:

for (const record of [dataOne, dataTwo]) {
    await tag.print(record, { copies: 2, cutAtEnd: true });
}

I am wondering if it is possible to print multiple labels in one call to improve efficiency, using something like this:

await tag.print([dataOne, dataTwo], { highResolution: true });

Does the library support this kind of batch printing? If not, are there plans to add this feature in the future?

Thank you for your help

@yeasir01 yeasir01 added the enhancement New feature or request label Jan 11, 2025
@yeasir01 yeasir01 self-assigned this Jan 11, 2025
@yeasir01
Copy link
Owner

Hi,
I will try to work this in on the next release. As for now, a for loop is needed for batch printing.

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

No branches or pull requests

2 participants