question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Setting Copies in the Win32 Options Array is ignored.

See original GitHub issue

So, i set the options for win32 to 3 copies, as thats what i need.

const options = {
        printer: printer_name,
        win32: ['-print-settings "3x"']
    };

And then i do the print…

ptp.print(filePath, options).then(res => {
        console.log('Print Complete');
    }).catch(err => {
        console.log(err);
    });

But i still only ever get 1 copy sent to my printer… Am i doing something wrong?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:14 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
artiebitscommented, Nov 23, 2021

hi @sebastianroming. I’ve refactored the print method but I forgot about number of copies. Sorry for that! We have an open issue for it https://github.com/artiebits/pdf-to-printer/issues/288. Feel free to work on it!

1reaction
artiebitscommented, Oct 25, 2020

I have released version 1.5.1 with the fix, assume this issue can be closed. thanks everyone!

Read more comments on GitHub >

github_iconTop Results From Across the Web

ignore attribute - Win32 apps - Microsoft Learn
The [ignore] attribute designates that a pointer contained in a structure or union and the object indicated by the pointer is not ...
Read more >
How do I print from Emacs on Win32? - Stack Overflow
I'm running Emacs 23.0.60.1, downloaded from here, on Windows XP, with a network printer configured as the default printer. How do I setup...
Read more >
Configuration - Electron Forge
Electron Forge configuration is centralized in a single configuration object. You can specify this config in your package.json on the config.forge property.
Read more >
Options | electron-packager
Ignores system junk files when copying the Electron app, regardless of the ignore option. Note: junk will have no effect if the prebuiltAsar...
Read more >
Installing GCC: Configuration - GNU Project
When directory is one of GCC's system include directories, GCC will ignore the option so that system directories continue to be processed in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found