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

can it print png in base64 format images? #44

Open
prasheel888 opened this issue Mar 5, 2022 · 1 comment
Open

can it print png in base64 format images? #44

prasheel888 opened this issue Mar 5, 2022 · 1 comment

Comments

@prasheel888
Copy link

No description provided.

@prasheel888 prasheel888 changed the title can it print png images? can it print png in base64 format images? Apr 11, 2022
@joserick
Copy link

private base64ToPrint(base64_data: string) {
  printer.printDirect({
    data: Buffer.from(base64_data, 'base64'),
    printer: this.printer_name,
    type: 'RAW',
    success: (job_id: any) => {
      console.log(`Printing with job id: ${job_id}`)
    }
  })
}

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

2 participants