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

Donot show in windows printer #47

Open
samantrader opened this issue Dec 25, 2022 · 1 comment
Open

Donot show in windows printer #47

samantrader opened this issue Dec 25, 2022 · 1 comment

Comments

@samantrader
Copy link

Hi
I use below code in electron js but donot add any printer in windows printers

`var fs = require('fs')
var Printer = require('ipp-printer')

var printer = new Printer('My Printer')

printer.on('job', function (job) {
console.log('[job %d] Printing document: %s', job.id, job.name)

var filename = 'job-' + job.id + '.ps' // .ps = PostScript
var file = fs.createWriteStream(filename)

job.on('end', function () {
console.log('[job %d] Document saved as %s', job.id, filename)
})

job.pipe(file)
})
`

@MaxLiebsch
Copy link

Dear, currently the only workaround I found is to install Bonjour Printer Assistent https://support.apple.com/kb/DL999?viewlocale=de_DE&locale=en_US, then the printer is showing up.

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