Bug 158654 - Print Dialog box incorrectly renders landscape documents
Summary: Print Dialog box incorrectly renders landscape documents
Status: RESOLVED DUPLICATE of bug 85094
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
7.6.4.1 release
Hardware: x86-64 (AMD64) All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-12-12 00:37 UTC by Mubeen
Modified: 2023-12-12 13:57 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Shows incorrect print dialog box preview (724.27 KB, image/png)
2023-12-12 00:40 UTC, Mubeen
Details
Mismatch print preview AND print - Using HP LaserJet 8000 driver and OfficeJet 9100 (22.18 KB, application/vnd.oasis.opendocument.text)
2023-12-12 07:25 UTC, Mubeen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mubeen 2023-12-12 00:37:00 UTC
Description:
When creating a Writer document that has the first page in Landscape mode, the File > Print dialog box shows an incorrect preview of the page. Instead of the page shown in landscape mode, it appears in portrait mode. This also happens for mixed orientation documents. For example, Page 1 = landscape mode and Page 2 = portrait and vise-versa. The preview from the File Print dialog always shows both pages in portrait mode. 

Doing a simple Print Preview does work, but the File Print dialog box doesn't.

Workaround. Re-select the printer from drop down list. 

Steps to Reproduce:
1.Open Writer
2.Format > Page Style
3.Select Landscape
4. Type "Hello world"
5. File > Print

Actual Results:
1) The print preview on the left panel will show the print as a Portrait mode document instead of landscape. 

2) Paper size will be blanked out, instead of showing Letter or whatever the printer default.

Expected Results:
1) The print preview should show a landscape mode document. 

2) Paper size should be automatically selected (instead of blanked out)



Reproducible: Always


User Profile Reset: No

Additional Info:
In spite of doing an actual, File > Print Preview (CTRL + SHIFT + O) and seeing the correct page layout, if the user clicks Print, they will still be shown the wrong layout. 

The workaround is, the user MUST re-select the printer from the drop down list of printers. When that happens, the paper size will be correctly shown and the print preview will be correctly displayed.

If the user does not re-select the print and tries to print, the document will not print correctly!
Comment 1 Mubeen 2023-12-12 00:40:34 UTC
Created attachment 191370 [details]
Shows incorrect print dialog box preview
Comment 2 Steven Casey 2023-12-12 02:28:37 UTC
Not repro for me on:

Version: 7.6.2.1 (X86_64) / LibreOffice Community
Build ID: 56f7684011345957bbf33a7ee678afaf4d2ba333
CPU threads: 32; OS: Windows 10.0 Build 22631; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded

Version: 7.6.4.1 (X86_64) / LibreOffice Community
Build ID: e19e193f88cd6c0525a17fb7a176ed8e6a3e2aa1
CPU threads: 32; OS: Windows 10.0 Build 22631; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded

Version: 24.2.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: 0ddd9f7e055a0c1ecb120de3e40c3fdb8373e9dc
CPU threads: 32; OS: Windows 10.0 Build 22631; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded
Comment 3 Mubeen 2023-12-12 07:20:49 UTC
I have noticed, the following 2 symptoms, in particular for multi page document 

1) Page 1 is in landscape mode
2) Page 2 is in portrait mode
3) Both page sizes are Letter

The print preview will NOT work.

On the other hand if:
1) Page 1 is in landscape mode
2) Page 2 is in portrait mode
3) Both page sizes are A4

The print preview will work!

It would seem to suggest, LibreOffice either can't communicate correctly with some print drivers or it simply doesn't know how to work correctly US paper sizes.

Another symptom, try change the print driver from the drop down list, which would explain why the workaround, sort of works - but doesn't completely work.
Comment 4 Mubeen 2023-12-12 07:25:31 UTC
Created attachment 191376 [details]
Mismatch print preview AND print - Using HP LaserJet 8000 driver and OfficeJet 9100

This sample file shows that some print drivers in combination of letter paper size do not print and print preview correctly.

Tried:
1) HP LaserJet 8000
2) HP OfficeJet 9100 PS
3) Microsoft Print To PDF 

Mubeen
Comment 5 m_a_riosv 2023-12-12 13:57:53 UTC
Looks to me like a duplicate of tdf#85094

*** This bug has been marked as a duplicate of bug 85094 ***