Do you have an issue with a specific file(s)? No
Can you reproduce using one of our samples or online demos? No
Are you using the WebViewer server? No
Does the issue only happen on certain browsers? No
Is your issue related to a front-end framework? Yes
Is your issue related to annotations? No
Please give a brief summary of your issue:
Wrong file rotation on using print()
Please describe your issue and provide steps to reproduce it:
I want to print my current view using print() function.
Here is my current pdf preview:
Then i call print() function and the dialog is displaying:
Finally the printed file is rotated and i don’t know how to fix it:
I just discussed this with my colleague, print makes it appear like how it looks by default in the viewer, with the note that if a document has a larger width than the height we will rotate it 90 degrees so it fits better on a portrait orientation paper.
That being said, if you would like to change the layout, you would have to do it in the print modal(browser print modal).
Web Development Support Engineer
PDFTron Systems, Inc.
I just up this topic because I have the same problem:
When, as you said, I try to print a document with a larger width than height, it rotates it in 90 degrees automatically.
It could not be a big problem, but the big problem is that the comments (annotations) in the document just lose their location.
Basically, the new background which is simulated to fit the browser layout print in the modal absolutely doesn’t respect locations and distances between annotations:
Inside the viewer, I let one comment in each border of the image (total of 4 yellow, as you can see):
Within the Chrome print modal (it’s a bit better with Edge but not perfect) it rotates (not good for us but it’s ok, but on top of that, it redeploy annotations in some strange locations which are not right):