We experience the same issues.  When I asked around, I was told that it's a 
limitation of PDF.js and that Mozilla was planning on ditching it.  I was 
disappointed to see that 68 is still using it.

In a traditional office environment (i.e. lots of paper, printing, forms), PDF 
printing is Firefox's biggest shortcoming.  Edge and Chrome have much better 
PDF and printing support.  Of course plugins are gone now, but you can disable 
PDF.js and have PDFs download and open in a separate application.

-----------------------------------------
Jason Jackson
Computer Systems Technician
North Vancouver School District



From: Enterprise <[email protected]> On Behalf Of Gaudreau, 
Jonathan
Sent: July 4, 2019 1:13 PM
To: [email protected]
Subject: [EXTERNAL] [Mozilla Enterprise] PDF files are printed in the wrong 
orientation

Hello,

We have an issue with pdf file that are generated from an SAP Fiori app (web) 
that is always printing in the wrong orientation.
The pdf preview is handled by the native pdf handler of firefox and when we are 
previewing it, it shows in the right orientation (landscape) and in the right 
format (8 ½ x 11 inches or letter)
When we print it though, the orientation of the form changes to Portrait and 
the size to 4'' by 11''.

We have a set of policies that are set by GPO and some others in the 
configuration file but none defines any parameters for the pdf handler.
I have tried messing with some flags in about :config like 
pdfjs.enablePrintAutoRotate to false and true, the result is the same.

Also, I have found that Firefox keeps tracks of the printer's configuration by 
creating new preferences in about :config.
Ex :

So let's say I have a printer with a universal printer driver that it's 
orientation configuration is by default to Portrait, Firefox keeps track of 
this by creating an orientation preference for this printer so that the next 
time I print, these parameters are (I think) pass to the printer's driver.
I have changed the value of this preference and I was able to make it print in 
the landscape format.
Knowing that, I have configured this preferences so that none of the printer's 
configuration are set in Firefox :
[cid:[email protected]]

I have many questions regarding this issue :

1-      Can anyone recommend me a configuration for the pdf.js preferences in 
Firefox that would help me with my issue?

2-      Where can I find a documentation that would at least gives a little 
description of all the configurable preferences in Firefox ?

3-      Why printing in Chrome/Edge Chromium does not alterate the pdf form and 
come out the printer perfectly ?

Thank you for your help !
______________________________________

Jonathan Gaudreau | Analyste environnement bureautique
Section - Parc & Gestion des actifs (T.I)
Direction exécutive des technologies de l'information et innovation
Place Bonaventure, 800 de la Gauchetière Ouest, bureau 8440
(514) 350-0800 poste 81377
[http://www.stm.info/sites/default/files/media/doc/2019/signature2019.png]

_______________________________________________
Enterprise mailing list
[email protected]
https://mail.mozilla.org/listinfo/enterprise

To unsubscribe from this list, please visit 
https://mail.mozilla.org/listinfo/enterprise or send an email to 
[email protected] with a subject of "unsubscribe"

Reply via email to