Steps: 1. Open attachment 193880 [details] (from bug 160618): small 1-page drawing using a landscape orientation. 2. File > Print: the Print dialog's orientation being "Automatic", the preview correctly shows the text placed at the top left of a page in Landscape Orientation. (A4 page in my case.) 3. Change Orientation to "Portrait" Result: the text is off page. A Print to File also has the contents off page. Expected: all contents visible in portrait mode, especially since the drawing's width fits the page width. Which was the case in LO 7.3. Bibisected with linux-64-7.4 repo to build [ed278a0c54b8e06dd3ee6444d4ef8f823837107b] which points to: commit ddaebfb270c4b52ddebaf678a9352312c75247fa author Luboš Luňák Mon Jan 31 20:27:54 2022 +0100 committer Luboš Luňák Tue Feb 01 11:16:43 2022 +0100 fix the orientation combobox in the print dialog Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129239 Still current in recent daily build: Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: 2f5ab5b8e7bd7dd06e00153abb77a69e5d192dd2 CPU threads: 8; OS: Linux 6.5; UI render: default; VCL: gtk3 Same happens with e.g. a Writer document and same steps. High priority as it's a regression that affects a basic functionality (printing) and Luboš is not active.
Created attachment 193891 [details] resulting PDF when printing to file Same on Windows: Version: 24.2.1.2 (X86_64) / LibreOffice Community Build ID: db4def46b0453cc22e2d0305797cf981b68ef5ac CPU threads: 4; OS: Windows 10.0 Build 22631; UI render: Skia/Raster; VCL: win Locale: en-US (en_US); UI: en-US Calc: threaded
Confirmed. Transformation applied by page Orientation in the Print dialog differs from transformation applied with page reorientation of document canvas. Shape content does not track and is mispositioned in preview. In Draw (not in the Print dialog) I did note that changing canvas from Landscape to Portrait means the rotation/anchor for the shape will be in the wrong position on the canvas. Trivial but necessary to adjust that, or object will be mispositioned--when editing further. Not clear that a global anchor for all objects on a Draw page can be defined, each is anchored/rotated independently. To demonstrate, attaching a version of attachment 193880 [details] where I have set a page size of 3.5" x 1.25" to match the Text box "label", and added a page with the "label" rotated 270° -- such that using the Draw -> Page -> 'Page Properties...' dialog radio button toggle the ODG between Landscape and Portrait Orientation, one page or the other correct depending on the orientation. Then try the Print dialog preview with each, using the Print dialog's Orientation list box (Automatic, Portrait, Landscape) note that the transformation applied in the Print dialog does not match transformation of the Draw canvas. Version: 24.2.2.2 (X86_64) / LibreOffice Community Build ID: d56cc158d8a96260b836f100ef4b4ef25d6f1a01 CPU threads: 8; OS: Windows 10.0 Build 19045; UI render: Skia/Vulkan; VCL: win Locale: en-US (en_US); UI: en-US Calc: CL threaded
Created attachment 193892 [details] two page drawing with a Text box rotated for print preview comparison Open attached in Draw. Use Print Preview (adjust printer as needed for diminutive page size) [1] Move between preview pages, note position of rotated draw Text box shape Use Page -> Page Properties... dialog RB to toggle Orientation Again use Print Preview Move between preview pages, note position Would expect the preview print Orientation layout to match the Page Orientation of the canvas. Does it, looking at it again kind of changing my mind. Seems like it does, the Print preview Automatic is picking the correct layout and only picking the wrong layout throws off the Text box position. =-note-= [1] For these off size document pages I use a ghostscript driven Print to PDF, and configure the custom output page size I need to match the source document. That eliminates any page size limits of what a physical printer supports.