# PDF.js Express Viewer - landscape print bug

**URL:** <https://pdfjs.community/t/pdf-js-express-viewer-landscape-print-bug/1462>\
**Category:** Bug Reports\
**Tags:** pdfjs-express\
**Created:** [March 10, 2022, 9:12am UTC](https://pdfjs.community/t/pdf-js-express-viewer-landscape-print-bug/1462 "2022-03-10T09:12:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![thor.smerud](https://avatars.discourse-cdn.com/v4/letter/t/d07c76/32.png) [@thor.smerud](https://pdfjs.community/u/thor.smerud)\
**Post date:** [March 10, 2022, 9:12am UTC](https://pdfjs.community/t/pdf-js-express-viewer-landscape-print-bug/1462/1 "2022-03-10T09:12:12Z")

</div>

We’re seein an issue when attempting to print documents that are in landscape orientation. The document is processed, then sent to the native print window with portrait orientation. Changing between portrait and landscape manually in the print options doesn’t help either.

We’re using PDF Express Viewer v8.2.1

---

<div class="post-metadata">

**Author:** ![thor.smerud](https://avatars.discourse-cdn.com/v4/letter/t/d07c76/32.png) [@thor.smerud](https://pdfjs.community/u/thor.smerud)\
**Post date:** [March 18, 2022, 12:13pm UTC](https://pdfjs.community/t/pdf-js-express-viewer-landscape-print-bug/1462/3 "2022-03-18T12:13:13Z")

</div>

Issue persists in PDF Express Viewer v8.3

---

<div class="post-metadata">

**Author:** ![Logan](https://yyz1.discourse-cdn.com/flex031/user_avatar/pdfjs.community/logan/32/13_2.png) [@Logan](https://pdfjs.community/u/Logan)\
**Post date:** [March 18, 2022, 2:34pm UTC](https://pdfjs.community/t/pdf-js-express-viewer-landscape-print-bug/1462/4 "2022-03-18T14:34:32Z")

</div>

Hey there!

I just tried printing a landscape document and it seemed to work fine:

 ![image](https://canada1.discourse-cdn.com/flex031/uploads/pdfjscommunity/original/1X/f9b1679de7a9c2c7e399ba2d7cb73bb21cc3a88a.png)

Are you able to send me a document where you can produce the bug?

Thanks!  
Logan

---

<div class="post-metadata">

**Author:** ![thor.smerud](https://avatars.discourse-cdn.com/v4/letter/t/d07c76/32.png) [@thor.smerud](https://pdfjs.community/u/thor.smerud)\
**Post date:** [March 23, 2022, 1:54pm UTC](https://pdfjs.community/t/pdf-js-express-viewer-landscape-print-bug/1462/5 "2022-03-23T13:54:58Z")

</div>

I apologize. As you note, it will print fine. The issue seems to be the **print preview**. When the orientation is set to portrait it will print correctly, The preview will have the pages displayed sideways, as it should for portrait, but this makes it harder to visualize the final print job. Preferably it would be displayed in landscape mode. When manually choosing landscape the content will still be displayed sideways, yet the page itself is oriented correctly.

 ![wrong_in_landscape.PNG](https://canada1.discourse-cdn.com/flex031/uploads/pdfjscommunity/original/1X/ab1ce1e6497e879d6b1529dac3497bb98d52fdb2.jpeg)

If I open the attached PDF (directly, from disk) in Chrome or Edge and press the print-button it will preview in landscape correctly (conversely, Chrome won’t let me choose orientation, Edge will show settings for Landscape and Portrait, but its selection won’t have any effect on the rendering). This is how I would like to see it in PDF.js Express Viewer as well.

 ![correct_in_landscape.PNG](https://canada1.discourse-cdn.com/flex031/uploads/pdfjscommunity/original/1X/b6940fb54eb719c75bd7f7d7a24f109b76298652.jpeg)

[landscape.pdf](https://pdfjs.community/uploads/short-url/AlPBAUTltRTQvaoPuK5UoLqlKFU.pdf) (388.7 KB)

---

<div class="post-metadata">

**Author:** ![Logan](https://yyz1.discourse-cdn.com/flex031/user_avatar/pdfjs.community/logan/32/13_2.png) [@Logan](https://pdfjs.community/u/Logan)\
**Post date:** [March 29, 2022, 7:17pm UTC](https://pdfjs.community/t/pdf-js-express-viewer-landscape-print-bug/1462/6 "2022-03-29T19:17:34Z")

</div>

Hey there,

We do not control the print preview or how browsers decide to display the preview, so there is a not a lot we can do. I still am not sure if I understand the issue though - every document I have tested with seems to work as expected.

Logan
