Bug 143027 - PRINTING: Print (preview) wrong on Brochure with custom page size
Summary: PRINTING: Print (preview) wrong on Brochure with custom page size
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.1.4.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Print-Dialog
  Show dependency treegraph
 
Reported: 2021-06-23 20:44 UTC by Mihai Vasiliu
Modified: 2023-07-13 13:59 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
cropped page 1 (244.26 KB, image/png)
2021-06-23 20:49 UTC, Mihai Vasiliu
Details
cropped page 2 (171.69 KB, image/png)
2021-06-23 20:52 UTC, Mihai Vasiliu
Details
shrinked page 1 (89.98 KB, image/png)
2021-06-23 20:52 UTC, Mihai Vasiliu
Details
wrong page size (203.82 KB, image/png)
2021-06-23 20:59 UTC, Mihai Vasiliu
Details
shrinked page 2 (72.01 KB, image/png)
2021-06-23 21:02 UTC, Mihai Vasiliu
Details
demo document (36.22 KB, application/vnd.oasis.opendocument.text)
2021-06-23 21:05 UTC, Mihai Vasiliu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mihai Vasiliu 2021-06-23 20:44:17 UTC
Description:
This is a very tricky bug to explain, as its behaviour seems random to me, but I will try my best.

I have a booklet fully written in LO Writer in odt format. The page size is non-standard, 142x102mm, set accordingly in the page layout -> page size.

What I want is to print the booklet as a Brochure, using the option from the print dialog box, at actual size on A4 paper. I mean NO scaling. Just 2 pages side by size according to brochure rules.

If I select paper size A4 and Brochure, the orientation is now grayed-out (I cannot select orientation) and the pages appear cropped in the preview. If I print the pages they are printed cropped, like in the preview. See the images attached.

What I expect is to be able to select my orentation, and thus the Brochure pages to be centered on the A4 page. Not scaled, not moved, just in the center at the page size of 142x102mm each.

Sometimes it gets worse when changing the print options from pages per sheet to brochure and vice-versa.
The behaviour on the real-print and also the preview is acting randomly if the paper size is changed.

Version: 7.1.4.2 (x64) / LibreOffice Community
Build ID: a529a4fab45b75fefc5b6226684193eb000654f6
CPU threads: 8; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: ro-RO (ro_RO); UI: en-US
Calc: CL

Steps to Reproduce:
1. Open attaced odt
2. Go to print dialog
3. Change to brochure
4. Inspect print preview
5. Change to pages per sheet (1 page), then change to brochure again. Inspect print preview again.
6. Change paper size. Inspect print preview again.
7. Notice how it behaves and how the print preview and the actual print is cropped. (You can print to PDF to confirm).

Actual Results:
Pages are cropped and not centered. Orientation dropdown is inactive.

Expected Results:
Orientation should be available to be changed. Pages should not exceed paper bounds and be centered on the page, actual size.


Reproducible: Always


User Profile Reset: No



Additional Info:
use the attachements to reproduce
Comment 1 Mihai Vasiliu 2021-06-23 20:49:51 UTC
Created attachment 173118 [details]
cropped page 1
Comment 2 Mihai Vasiliu 2021-06-23 20:52:00 UTC
Created attachment 173119 [details]
cropped page 2
Comment 3 Mihai Vasiliu 2021-06-23 20:52:55 UTC
Created attachment 173120 [details]
shrinked page 1

Sometimes only SOME pages are shrinked.
Comment 4 Mihai Vasiliu 2021-06-23 20:59:37 UTC
Created attachment 173121 [details]
wrong page size

Here the dimensions of the paper written along the preview are wrong. Selected paper size is A4, but written dimensions are user defined (on the preview margins). So the two pages are shrinked two times their original size.
Comment 5 Mihai Vasiliu 2021-06-23 21:02:47 UTC
Created attachment 173122 [details]
shrinked page 2

Here is another random page which is NOT centered and is also shrinked too much. Only SOME pages are like this, others are enlarged to fit A4 size. This is totally random to reproduce.
Comment 6 Mihai Vasiliu 2021-06-23 21:05:07 UTC
Created attachment 173124 [details]
demo document

You can reproduce the bug always, but you need to fiddle around with the paper size, pages per sheet, orientation and brochure to reproduce it, as it is quite random.
Comment 7 Dieter 2021-07-11 07:40:16 UTC
(In reply to Mihai Vasiliu from comment #0)
> Steps to Reproduce:
> 1. Open attaced odt
Paper Format is 142mm x 102mm
> 2. Go to print dialog
> 3. Change to brochure
> 4. Inspect print preview
Paper Size in dialog is A4 (fine) and paper size in print preview is 142mm x 102mm (= Paper format). Orientation is landscape by default. ODF print is not cropped.

> 5. Change to pages per sheet (1 page), then change to brochure again.
> Inspect print preview again.
> 6. Change paper size. Inspect print preview again.
Paper Size in dialog is A4 (fine) and paper size in print preview is 142mm x 102mm (= Paper format). Orientation is landscape by default. PDF print changes print preview to A4. PDF is not cropped.

> 7. Notice how it behaves and how the print preview and the actual print is
> cropped. (You can print to PDF to confirm).

I get always different relsults. Behaviour is very inconsistent

Version: 7.3.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 949658028e722e5d2657b503eb20e16e41dbd8cf
CPU threads: 4; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL

Not sure, if my observations are enough to set status to NEW.
Comment 8 Sophie Sipasseuth 2023-07-04 08:07:22 UTC
No repro, when I follow the steps, the preview doesn't crop the document, and when I print it, the document is not cropped and the size is good. I only remark that the document is not centered on the paper pages.

Version: 7.4.8.0.0+ (x64) / LibreOffice Community
Build ID: f8ba7c6f77497e2dc7bfef8378511e2074ce01f9
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: fr-FR (fr_FR); UI: en-US
Calc: CL
Comment 9 Stéphane Guillou (stragu) 2023-07-13 13:59:16 UTC
Reproduced some inconsistencies in 7.1.0.3 and 7.2.7.2, in particular the erroneous page measurements when changing from Brochure to Pages per sheet, and the wrong preview when changing the page size back and forth (I could end up with a preview of an A4 portrait of a single page when the settings were a A4 landscape brochure).

Testing with attachment 173124 [details], from a clean profile in:

Version: 7.5.4.2 (X86_64) / LibreOffice Community
Build ID: 36ccfdc35048b057fd9854c757a8b67ec53977b6
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

I can't reproduce the wrong measurements on the preview, but I still can see the wrong preview with the following steps:

1. Open ODT
2. File > Print, see that Brochure is already selected
3. Change paper size from A4 to e.g A5: preview is not landscape anymore
4. Change it back to A4: preview is still in portrait, with contents centred
5. Change Orientation to Landscape: preview is OK
6. Change Orientation to Portrait or Automatic: preview is in portrait, but contents are cropped differently to previously (overflows to the left)

Keeping open for the inconsistencies outlined above.