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.

extended printing features?

See original GitHub issue

I’d rather ask this question in advance to know whether it makes sense to report the individual issues.

All of them are related to printing. For (almost) all of them, a new printing dialog would be needed.

PDF.js prints the file fine when the page size the PDF document uses is the same as the paper size in the printer.

There are other options that PDF.js should implement:

  • Shrink page contents to printer margins. It would be better that this option is triggered only when minimization is really needed. (Already reported in #8832).

  • Use document paper dimensions.

  • Print in duplex or simplex mode.

These are also keys in the /ViewerPreferences dictionary:

  • /PrintScaling /None disables page scaling to fit printer margins.

  • /PickTrayByPDFSize true sets paper size from PDF document not from printer (essential when having to print with different paper sizes fed from paper tray).

  • /Duplex which can have three possible values:

    • /DuplexFlipShortEdge for vertical duplex printing.

    • /DuplexFlipLongEdge for horizontal duplex printing.

    • /Simplex for single-sided printing (important when printer is set by default to duplex printing).

The implementation would be twofold:

  1. Read the information from the /ViewerPreferences and print accordingly.

  2. Add a printing dialog (such as other viewers have) that allows the user to select those options.

Could be these features implemented in PDF.js?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
timvandermeijcommented, Aug 29, 2017

The challenge here is to actually send that data to the browser’s print dialog/the printer. As far as I know there is no way to control e.g., the paper dimensions through JavaScript. Before attempting to implement this, I’d suggest to first look into if all this is even possible with JavaScript, mainly because we had issues with it before. Keep cross-browser support in mind as well.

0reactions
timvandermeijcommented, Apr 27, 2021

Not only would that make user experience between the various builds inconsistent, it’s also not something we can fix here and should be filed upstream in Bugzilla then.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What Is Extended Gamut Printing? - Oliver Inc
Extended gamut printing, a cost-effective alternative to spot coloring, expands CMYK colors to include green, orange, and violet so printers ...
Read more >
Disabling Advanced Printing Features - PaperCut
Uncheck the box next to Enable advanced printing features. Print a test page to confirm everything is working as expected.
Read more >
Adding Advanced Mac Printing Options
Manually configuring SCS printers on macOS may require advanced options during setup. This optional toolbar icon can be added to enable additional configuration ......
Read more >
Advanced PDF print settings - Acrobat Pro - Adobe Support
Advanced PDF print settings in Adobe Acrobat Pro for PostScript and non-PostScript printers – PostScript options, output options, ...
Read more >
Special printing features - Xerox Office Products and Solutions
The printer's front panel provides an interface to adjust the density of the toner applied to the media. This feature compensates for the...
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