Bug 35104 - Label templates use wrong page size
Summary: Label templates use wrong page size
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
3.3.1 release
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: Winfried Donkers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-07 23:58 UTC by Martin Koller
Modified: 2012-02-12 23:51 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
screenshot of described problem with 3.5-beta2 (91.67 KB, image/jpeg)
2011-12-30 01:29 UTC, Martin Koller
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Koller 2011-03-07 23:58:21 UTC
I'm creating a new page via the "Labels" wizard and select
"Avery Zweckform 3422..."

The new document has then a page size of format "User"
and width=21,04cm, height=28,88cm
but in reality the label page is exactly A4

Changing the page size to A4 clearly disrupts the page layout and
makes the page useless.

I cross checked the same label type with M$-Word and there the page has
exactly A4 format.

This is not only a problem of this specific Avery-Zweckform 3422 label
but also with other Avery-Zweckform labels.
Comment 1 Björn Michaelsen 2011-12-23 11:43:28 UTC
[This is an automated message.]
This bug was filed before the changes to Bugzilla on 2011-10-16. Thus it
started right out as NEW without ever being explicitly confirmed. The bug is
changed to state NEEDINFO for this reason. To move this bug from NEEDINFO back
to NEW please check if the bug still persists with the 3.5.0 beta1 or beta2 prereleases.
Details on how to test the 3.5.0 beta1 can be found at:
http://wiki.documentfoundation.org/QA/BugHunting_Session_3.5.0.-1

more detail on this bulk operation: http://nabble.documentfoundation.org/RFC-Operation-Spamzilla-tp3607474p3607474.html
Comment 2 Björn Michaelsen 2011-12-25 15:34:29 UTC
as per:

 https://www.google.com/search?client=ubuntu&channel=fs&q=donkers+label+bug&ie=utf-8&oe=utf-8

this is likely a duplicate of bug 36874. Please check and change the state of this bug to RESOLVED/DUPLICATE, if that is indeed the case.
Comment 3 Martin Koller 2011-12-30 01:29:04 UTC
This seems to be a duplicate of bug 36874, however I now tested my problem with 3.5-beta2:

- The original problem of the wrong page size seems to be fixed
- But the resulting page is now _worse_ than before.
The problem I see now is that the new document created from "Avery Zweckform 3422" has now 2 (!) pages instead of exactly 1. Every second row seems to have wrong margin settings for the right-column label.
See attached screenshot.
Comment 4 Martin Koller 2011-12-30 01:29:50 UTC
Created attachment 54968 [details]
screenshot of described problem with 3.5-beta2
Comment 5 Winfried Donkers 2012-01-16 07:49:19 UTC
I confirm the behaviour (version master).
This particular label is 70 mm wide and has 3 columns, giving a width of 210mm.
Possibly because rounding somewhere the width becomes too much for A4 (the page width is set to A4) and the label layout gets distorted. Setting the page width to 21.02mm (and left/right margin to 0) restores the layout.

I will see if I can solve this whilst working on bug 44516.
Comment 6 Winfried Donkers 2012-01-16 22:29:04 UTC
It is indeed a problem with rounding off:
The traditional measure in printing is twip (twentieth of a Postscript point), the label dimensions are in 0.01mm.
The calculated width of 3 HEMA labels is 11907 twips, A4 is 11906 twips...

I will address this whilst working on bug 44516.
Comment 7 Winfried Donkers 2012-02-12 23:51:22 UTC
patch for 44516 submitted, which also fixes problem in this bug