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.

Printing mediaSize not being used with printers on Windows

See original GitHub issue

I opened an issue about mediaSize not being used on Windows #5176. I am very grateful to have gotten such a quick response, and while the gist provided does work, changing the print from using pdf_path to using any printer does not seem to work. I’ve tried both microsoft’s print to pdf and physical printers.

win.print({
  'printer':'Microsoft Print to PDF',
  'mediaSize':{
    'name': 'CUSTOM',
    'width_microns': 241300,
    'height_microns': 104648,
    'custom_display_name':'Letter',
    'is_default': true},
  "marginsCustom": {
    "marginBottom":54,
    "marginLeft":0,
    "marginRight":28,
    "marginTop":32},
  "marginsType":3
})

I am on NW.js v0.16.0 and Windows 10.

Issue Analytics

  • State:open
  • Created 7 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Christywlcommented, Apr 12, 2017

I can reproduce this issue on Windows 10 with nwjs-sdk-v0.21.5, the output pdf is always A4.

0reactions
behighcommented, May 29, 2017

Any updates on this issue?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Selected media size does not work for print jobs on a printer in ...
Fixes an issue that occurs when you select a specific media size for a print job on a printer that uses a v4...
Read more >
Unable to auto-duplex and 2-sided printing fails after installing ...
Make sure a Windows Quick Set is not selected that contradicts the desired ... might not be supported for the media size or...
Read more >
How to set up Illustrator files for printing - Adobe Support
Print a composite of artwork. A composite is a single-page version of artwork that corresponds to what you see in the illustration window—in ......
Read more >
Tutorial - Printing from Illustrator to Epson Inkjet Printers
In the Media Size heading, check to make sure Media Size is set to Defined by Driver, and that the Orientation is set...
Read more >
How to configure your printer by web browser - Brother support
This option is used to set the media size, select the media sensor type and the print method. Media Setup. Calibration Setup
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