2

We generate PDFs and show in Chrome and IE11 with the ng2-pdfjs-viewer component. Both of them show the same results and it's fine. But when we try to print documents, results of printing are different: after Chrome the resulting document looks the same as visible PDF, but in IE11 the resulting document content is shrunked (scaled down). We finished fixing the problem with updating viewer.css for IE. It there some right way to fix the problem without updates of ng2-pdfjs-viewer code ?

Deepak-MSFT
  • 10,379
  • 1
  • 12
  • 19
  • 1
    I check the ng2-pdfjs-viewer documentation but did not got any information regarding this issue. It can be possible that new IE security update caused this issue in IE which get fix by updating the viewer.css. You did not inform us which exact version of ng2-pdfjs-viewer you are using for making test. I suggest you to make a test with the latest version may help to avoid this issue. Ref: https://www.npmjs.com/package/ng2-pdfjs-viewer – Deepak-MSFT Jul 02 '19 at 08:03
  • 1
    We tested it with the 3.4.8 version, this is the latest one. Due to privacy reason I can't show real documents here, but the difference in print contents is obvious – Julia Breger Jul 02 '19 at 09:56
  • 1
    You can submit your feedback for ng2-pdfjs-viewer library on their official site. They can test the issue with their library. As it is a third party library, Issue cannot be fixed from IE side. – Deepak-MSFT Jul 02 '19 at 10:01
  • 1
    Thank you, I opened an issue there (GitHub): https://github.com/intbot/ng2-pdfjs-viewer/issues/33 – Julia Breger Jul 02 '19 at 10:11
  • 1
    @Deepak-MSFT - This is the author of this package. Is it possible to create a SO tag with ng2-pdfjs-viewer? I may have seen this question early is it had. As stated in the issue created, Mozilla's PDFJS and viewer does support IE with limitations, hence it should be directly reported to them. Please see their FAQ - Which browsers are supported here: https://github.com/mozilla/pdf.js/wiki/Frequently-Asked-Questions – int-i Aug 12 '19 at 19:40
  • My bad. Looks like the tag is already there. :-) – int-i Aug 12 '19 at 20:10
  • @int-i, Thanks for providing the information about the cause for this issue. if possible for you than can you please post it as an answer? It can help other community members who have similar kind of questions in future. Thanks for your understanding. – Deepak-MSFT Aug 14 '19 at 05:36
  • @Deepak-MSFT Just posted it as an answer – int-i Aug 14 '19 at 16:20

1 Answers1

1

Mozilla's PDFJS and viewer does NOT fully support IE. There are many limitations. It is also stated in their FAQ.

Which browsers are supported Quention in following link: FAQ

Content pasted here for easy access
"IE 11/Edge -> Mostly supported -> Some missing features/defects have been reported, but no problems in general."

int-i
  • 661
  • 1
  • 12
  • 28