Landscape PDF cropped on the right side

• Dec 30, 2018 - 07:53
Reported version
3.0
Type
Functional
Frequency
Few
Severity
S3 - Major
Reproducibility
Always
Status
closed
Regression
Yes
Workaround
Yes
Project

PDF export of an A4 landscape score results in a cropped portrait PDF.
Workaround: Printing the score as PDF via Print → Print to file (PDF).
See also landscape PDF export


Comments

I can confirm the bug, and for me, the workaround doesn't work either, it results in the same cropped page as regular export. Arch Linux, MS 3.0.0.

Status active PR created

Proposed PR:
https://github.com/musescore/MuseScore/pull/4554

The page dimensions are already set as a rotated page by
printer.setPaperSize(size, QPrinter::Inch);
printer.setFullPage(true);

so I think the printer.setPageOrientation(size.width() > size.height() ? QPageLayout::Landscape : QPageLayout::Portrait) instruction was rotating again the page when the width was larger than the height, i.e. at the end there was no page rotation at all.

In reply to by Jojo-Schmitz

Under ArchLinux we are still at 3.0.1. Maybe under 3.0.2 this problem is solved. I have checked the package in Archlinux and it's already flagged out-of-date, so It's just a matter of time the owner of the package compiles it again and offers it into the repos. I'll try once I'm under 3.0.2.
Regards

Fix version
3.0.1