PDF files: different dpi resolution in x versus y dimensions?

• Dec 6, 2018 - 01:07

The bottom two overloads of MScore::savePdf() use both logicalDpiX and logicalDpiY to call setViewport(). But then setWindow() uses only logicalDpiX and MScore::pixelRatio uses DPI for both dimensions. That effectively scales/stretches the y dimension in the resulting PDF file, AFAICT. I'm not sure how to reproduce a situation where the x and y logicalDpi would be different.

I want to confirm that is correct, and then ask why is it that way? Why would a PDF file have different resolution for the x and y dimensions? Why stretch instead of crop? Or is this just excess, older code?

https://github.com/musescore/MuseScore/blob/082e635c1d9c7b3aaadfb67f304…

https://github.com/musescore/MuseScore/blob/082e635c1d9c7b3aaadfb67f304…

Do you still have an unanswered question? Please log in first to post your question.