Bug 118988 - Portyrait/Landscape/Margins issue
Summary: Portyrait/Landscape/Margins issue
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Printing and PDF export (show other bugs)
Version:
(earliest affected)
6.0.5.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-07-29 17:48 UTC by business_kid
Modified: 2019-06-25 07:16 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Offending Document (8.93 KB, application/vnd.oasis.opendocument.text)
2018-08-19 11:17 UTC, business_kid
Details

Note You need to log in before you can comment on or make changes to this bug.
Description business_kid 2018-07-29 17:48:03 UTC
Trying to put an address on a handout 193mm wide by 114mm long. I used 
Format/Page, set User size, put in measurements, reduced margin from 20mm to 10mm and clicked OK.It printed at right angles off page. The settings had switched to landscapebut my numbers were also reversed, (114mm x 193mm) so it printed at right angles below page bottom, as my insert was on the left.

I had to lie (193 x 193) to get it to stop messing me about on page size. It also puked on the 10mm, giving me a 50mm margin. I reset 20mm, and it gave me NO margin. I inserted a tab as the easiest way around this. My margin is about 15mm, but I'm not worried.

I'm using cups-2.2.8 on Slackware64-current with a HP Laserjet Professional 1102w
Comment 1 raal 2018-08-18 14:34:16 UTC Comment hidden (obsolete)
Comment 2 Regina Henschel 2018-08-18 18:10:34 UTC
Please use the setting "Use only pager size from printer preferences" from the "Options" tab of the Print dialog and set the real paper size in the printer Properties in tab General. Then please try again using your own document size.

Please always use the Print dialog for unusual formats. There you get a preview where you can see, where your document will be printed.

Please report back, whether this works.
Comment 3 business_kid 2018-08-19 11:17:30 UTC
Created attachment 144291 [details]
Offending Document

This is the file. My 193mm(w) x 114mm(h) document was a pre=printed meeting invite. In fact, the printer isn't fussy about height at all. It measures from the top, and finishes with a form feed, which rolls out whatever's there. That prints fine on A4; It's just apparently the distance from the top and left that are measured. I'll get on via mobile and send a photo of the pre-printed form if anyone wants it.

It's when you set the width 193mm and height 114mm that everything goes funny. You can do that on A4 also.
Comment 4 Xisco Faulí 2018-08-20 16:25:33 UTC
Does it work following Regina's steps in comment 2 ?
Comment 5 business_kid 2018-08-21 10:13:23 UTC
In direct reply to comment Regina's Comment #2, No. Libreoffice over-rides the cups settings normally. What that does is rely on the cups settings. I could go into cups, try setting 193mm x 114mm, and see, but don't see the point when we are discussing a LibreOffice bug. I might uncover more bugs, but they would be cups bugs. The work is out the door, so I don't need a workaround. The workaround was to set a page sixe of 193mm x 193mm after writing but before printing.

With the 'page size from Printer, I have a page size of A4 by default in cups, and a size of 193mm x 114mm on the document. When it is asked to print, it comes up with a portrait A4 size, and my address is landed in the middle of this (non existent) A4 page.

The real problem is this: LO is presuming always that my print must run in lines across the narrow side of a page. When I come along and want to run print across the wide sides, it pukes. A page size of 1144mm x 193mm set to landscape would probably also puke. There is no way to get LO to put print across the wide side of a page. You may not want to fix this to protect twits from themselves, but you may.

I'll leave this unconfirmed, but why doesn't one of you set up the page sizes; You can print on any larger page regardless of size. Then you can confirm it or set it to NOTABUG and we can all go away.
Comment 6 business_kid 2018-08-21 10:18:07 UTC
"A page size of 1144mm x 193mm set to landscape would probably also puke."

Er, this bit should have read

"A page size of 114mm x 193mm set to landscape would probably also puke." Sorry, I've only one hand working here.
Comment 7 elenageorge 2018-10-23 09:45:30 UTC Comment hidden (spam)
Comment 8 business_kid 2018-10-23 10:49:23 UTC
In answer to comment #7, The ONLY way to set up a wifi connection to a HP Laserjet 1102 is to use the install CD in windows, which sets an IP. Then use HPLIP to set up the linux connection in linux. Cups drivers are pre installed, and everything is package installed and not downloaded from iffy sites. Libreoffice is also on slackware.com in Alien Bob's repository, but not in the dvd. LO comes in 3 slackware packages, 

I wish one of you guys would try setting up a 'user' page wider than long, and see if you can print portrait (i.e. print across the wide side). If you can, this is not a bug, but my problem, or a slackware one. If you can't surely this is a bug? 

This is not a newbie error, I am no newbie. Please stop time wasting with possible external errors which don't exist. If I discover a cups error, I'll report it to the cups project, not here. 

I am not in the habit of reporting false bugs or indeed bugs at all, and certainly not kernel bugs. When I find bugs I take the time and endure the suffering to report them. I reported 2. I solved a long standing kernel issue with certain chipsets in ehci-hcd (patched in kernel-2.14.0), and I reported a more recent issue on console blanking in Radeon chipsets which was sorted in kernel-3.19.0.
Comment 9 business_kid 2018-10-23 10:54:08 UTC
Er, sorry, Answerede comment #7 before it was marked as spam
Comment 10 business_kid 2018-10-25 10:09:29 UTC

Any standard portrait size prints OK, as long as length ≥ width. The printing routine seems to measure from the top, and the left. The right and bottom sizes simply affect the printable area size. But you cannot set a portrait size wider than long.

Landscape sizes measure from the top (which would be the right of page if we held the page so as to read it) and I imagine the left (which would be the top of page when we held it to read it with the print upright). This takes it that 193x114 is inserted into the printer as 114(w)x193(h). They print ok if inserted sideways so that 'length' ≥ 'width'. Finding the top of page (LHS in a portrait page) relies on having the page guides in the printer correctly set for the narrow size

Envelope sizes do print either way. They are inserted in landscape mode, but will print portrait or landscape. Had I set my page up as 114mm wide x 193mm long, I could have printed landscape (i.e. from one wide side to another) by using the nearest envelope size. 

The 'user' size isn't a standard size, or an envelope size, but has the defaults of a standard page size. I needed the defaults of an envelope size. That was the problem. 

Every print routine has it's own unique interface in the GUI, but I don't know how deep that goes. The fact that this doesn't surface in other applications (e.g. firefox) probably means that it's your bug. But a fix of the user size would do it.

You can consider setting this to NOTABUG, in view of the many outstanding and untreated bugs in your print routines. Your choice. I wouldn't have bothered to report a bug this small.
Comment 11 AlexaBeth 2018-12-18 11:23:36 UTC Comment hidden (spam)
Comment 12 sussan 2019-03-06 08:17:11 UTC Comment hidden (spam)
Comment 13 Xisco Faulí 2019-03-12 19:10:22 UTC
This bug was set to NEW by a spammer. putting it back to UNCONFIRMED
Comment 14 samjonas 2019-05-14 10:12:49 UTC
(In reply to business_kid from comment #8)
> In answer to comment #7, The ONLY way to set up a wifi connection to a HP
> Laserjet 1102 is to use the install CD in windows, which sets an IP. Then
> use HPLIP to set up the linux connection in linux. Cups drivers are pre
> installed, and everything is package installed and not downloaded from iffy
> sites. Libreoffice is also on slackware.com in Alien Bob's repository, but
> not in the dvd. LO comes in 3 slackware packages, 
> 
> I wish one of you guys would try setting up a 'user' page wider than long,
> and see if you can print portrait (i.e. print across the wide side). If you
> can, this is not a bug, but my problem, or a slackware one. If you can't
> surely this is a bug? 
> 
> This is not a newbie error, I am no newbie. Please stop time wasting with
> possible external errors which don't exist. If I discover a cups error, I'll
> report it to the cups project, not here. 
> 
> I am not in the habit of reporting false bugs or indeed bugs at all, and
> certainly not kernel bugs. When I find bugs I take the time and endure the
> suffering to report them. I reported 2. I solved a long standing kernel
> issue with certain chipsets in ehci-hcd (patched in kernel-2.14.0), and I
> reported a more recent issue on console blanking in Radeon chipsets which
> was sorted in kernel-3.19.0.

Yes I did the same to connect my wifi to the Laserjet... it worked Thanks
Comment 15 James Smith 2019-06-18 11:54:55 UTC Comment hidden (spam)