[Issue] Weird page size, Writer insists upon rotating it to print

Issues installing under the Mac OSX - X11 - Aqua
Locked
johngalt
Posts: 13
Joined: Fri Aug 19, 2011 3:42 pm

[Issue] Weird page size, Writer insists upon rotating it to print

Post by johngalt »

I want to print labels on continuous feed stock. The paper I am using resembles this product: https://ganson-store.com/4-x-1-7-16-pin ... ls-a-case/#

I formatted the page size as 4" horizontal, 1.5" vertical. The page looks fine, until I go to print it:

Screen Shot 2022-12-30 at 10.54.29 PM.jpg
Screen Shot 2022-12-30 at 10.54.29 PM.jpg (99.1 KiB) Viewed 10643 times
Writer's Print dialog is gratuitously rotating the page. How do I tell it not to do that?

Whether I select Landscape or Portrait doesn't help. It seems to want to consider the "long" dimension (which happens to be 4 inches) the vertical one no matter what I do.

This is important because I have many labels to print. Thank you.
Last edited by MrProgrammer on Sun Jan 01, 2023 7:27 pm, edited 2 times in total.
Reason: Tagged as [Issue] -- MrProgrammer, forum moderator
OpenOffice 4.1.11 / macOS 11.7.3
John_Ha
Volunteer
Posts: 9605
Joined: Fri Sep 18, 2009 5:51 pm
Location: UK

Re: Weird page size, Writer insists upon rotating it to print

Post by John_Ha »

Please upload the .odt file showing the problem so that it can be analysed.

Press POSTREPLY and click the Upload attachment tab below where you type (128 kB max); or use a file share site such as mediafire, Dropbox or Google Drive for a larger file.

Also, what happens when you select a different printer like a PDF printer?

And does it print correctly meaning it is only the print pop-up which is wrong?

Finally, is it OK when you test by swapping the dialogue boxes with Preferences > OpenOffice > General > check/uncheck Use OpenOffice dialogue boxes?
LO 6.4.4.2, Windows 10 Home 64 bit

See the Writer Guide, the Writer FAQ, the Writer Tutorials and Writer for students.

Remember: Always save your Writer files as .odt files. - see here for the many reasons why.
johngalt
Posts: 13
Joined: Fri Aug 19, 2011 3:42 pm

Re: Weird page size, Writer insists upon rotating it to print

Post by johngalt »

Thanks!
Also, what happens when you select a different printer like a PDF printer?

And does it print correctly meaning it is only the print pop-up which is wrong?
No. It prints the text rotated, exactly as shown in the print dialog.

The PDF rendering is shown below.
PDF.jpg
PDF.jpg (4.71 KiB) Viewed 10547 times
Finally, is it OK when you test by swapping the dialogue boxes with Preferences > OpenOffice > General > check/uncheck Use OpenOffice dialogue boxes?
Sadly, no. Selecting the OO Print dialog does the exact same thing:
OO print.jpg
OO print.jpg (51.3 KiB) Viewed 10547 times
I attempted to toggle portrait / landscape which does not help. No matter what I do it insists upon rotating the text 90º and printing it that way. The only place it looks correct is when I am composing the document (attachment).
Untitled 1.odt
(9.98 KiB) Downloaded 193 times
[Edited to fix uploads]
OpenOffice 4.1.11 / macOS 11.7.3
Bill
Volunteer
Posts: 8952
Joined: Sat Nov 24, 2007 6:48 am

Re: Weird page size, Writer insists upon rotating it to print

Post by Bill »

You have specified a 4" width and a 1.5" height which is a Landscape orientation, but the orientation setting is Portrait. In the page style settings change the Orientation setting to Landscape, then fix the dimensions.
AOO 4.1.14 on Ubuntu MATE 22.04
johngalt
Posts: 13
Joined: Fri Aug 19, 2011 3:42 pm

Re: Weird page size, Writer insists upon rotating it to print

Post by johngalt »

Bill wrote: Sat Dec 31, 2022 5:31 pm You have specified a 4" width and a 1.5" height which is a Landscape orientation, but the orientation setting is Portrait. In the page style settings change the Orientation setting to Landscape, then fix the dimensions.
Already tried that, but perhaps you can see if I did something wrong.
OO doc.jpg
OO doc.jpg (60.64 KiB) Viewed 10446 times
OO print.jpg
OO print.jpg (53.31 KiB) Viewed 10446 times
PDF output is identical.
Untitled 1.jpg
Untitled 1.jpg (5.8 KiB) Viewed 10446 times
OpenOffice 4.1.11 / macOS 11.7.3
JeJe
Volunteer
Posts: 3134
Joined: Wed Mar 09, 2016 2:40 pm

Re: Weird page size, Writer insists upon rotating it to print

Post by JeJe »

If I open that file in OO and export as pdf it looks how it should.
Untitled 1.pdf
(8.4 KiB) Downloaded 220 times
Untitled.png
Untitled.png (6.94 KiB) Viewed 10419 times
Windows 10, Openoffice 4.1.11, LibreOffice 7.4.0.3 (x64)
johngalt
Posts: 13
Joined: Fri Aug 19, 2011 3:42 pm

Re: Weird page size, Writer insists upon rotating it to print

Post by johngalt »

That's what it's supposed to look like. Bug in the Mac version perhaps?
OpenOffice 4.1.11 / macOS 11.7.3
JeJe
Volunteer
Posts: 3134
Joined: Wed Mar 09, 2016 2:40 pm

Re: Weird page size, Writer insists upon rotating it to print

Post by JeJe »

There's a bug thread here
Bug 92190 - PRINTs landscape despite configured as portrait (Mac OS)
https://bugs.documentfoundation.org/sho ... i?id=92190

Edit: that's for LibreOffice though.
Windows 10, Openoffice 4.1.11, LibreOffice 7.4.0.3 (x64)
JeJe
Volunteer
Posts: 3134
Joined: Wed Mar 09, 2016 2:40 pm

Re: Weird page size, Writer insists upon rotating it to print

Post by JeJe »

There's a thread here, if an old one:

https://forum.openoffice.org/en/forum/v ... hp?t=58499
Windows 10, Openoffice 4.1.11, LibreOffice 7.4.0.3 (x64)
Bill
Volunteer
Posts: 8952
Joined: Sat Nov 24, 2007 6:48 am

Re: Weird page size, Writer insists upon rotating it to print

Post by Bill »

Click the General tab on the AOO Print dialog, then select the printer and click Properties. Is there an Orientation setting there?
AOO 4.1.14 on Ubuntu MATE 22.04
JeJe
Volunteer
Posts: 3134
Joined: Wed Mar 09, 2016 2:40 pm

Re: Weird page size, Writer insists upon rotating it to print

Post by JeJe »

The LibreOffice bug is VERIFIED FIXED so if you still get no joy with OO you could try LibreOffice to see if it gives you what you want - I still use OO but many of the regular posters here recommend switching to LO anyway.
Windows 10, Openoffice 4.1.11, LibreOffice 7.4.0.3 (x64)
johngalt
Posts: 13
Joined: Fri Aug 19, 2011 3:42 pm

Re: Weird page size, Writer insists upon rotating it to print

Post by johngalt »

JeJe wrote: Sun Jan 01, 2023 2:58 am The LibreOffice bug is VERIFIED FIXED so if you still get no joy with OO you could try LibreOffice to see if it gives you what you want -
Thank you. It's past time I upgraded to LO. I appreciate your assistance.
OpenOffice 4.1.11 / macOS 11.7.3
johngalt
Posts: 13
Joined: Fri Aug 19, 2011 3:42 pm

Re: Weird page size, Writer insists upon rotating it to print

Post by johngalt »

Bill wrote: Sun Jan 01, 2023 2:54 am Click the General tab on the AOO Print dialog, then select the printer and click Properties. Is there an Orientation setting there?
No Properties for that printer. Not a surprise because I'm using a remote Mac as a print server.

I think the solution will be to move on from OO and upgrade to the latest version of LibreOffice. Thank you for your insight.
OpenOffice 4.1.11 / macOS 11.7.3
User avatar
MrProgrammer
Moderator
Posts: 5453
Joined: Fri Jun 04, 2010 7:57 pm
Location: Wisconsin, USA

Re: Weird page size, Writer insists upon rotating it to print

Post by MrProgrammer »

johngalt wrote: Sat Dec 31, 2022 6:04 am Writer's Print dialog is gratuitously rotating the page.
No, since you have not used option OpenOffice → General → Print dialogs → Use OpenOffice dialogs, that is a MacOS print dialog. Click the ? next to the PDF button and the MacOS UserGuide will open. Options are set with OpenOffice → Preferences on a Mac. The rest of my post assumes that the option is set so that File → Print will use the OpenOffice dialog.

johngalt wrote: Sun Jan 01, 2023 12:22 am Bug in the Mac version perhaps?
The undesired rotation may be due to this unresolved problem which affects MacOS:
Printing on PDF format or Preview by print panel ignores page orientation
The problem also affects the OpenOffice print dialog. It's not clear to me from reading the issue exactly what circumstance triggers incorrect printing, which made finding a workaround difficult.

Bill wrote: Sun Jan 01, 2023 2:54 am Is there an Orientation setting there?
Some help pages suggest that there should be, but nope, perhaps also due to the aforementioned issue.
File → Printer settings → Options
File → Printer settings → Options
202212312142.gif (101.85 KiB) Viewed 10122 times

johngalt wrote: Sat Dec 31, 2022 3:24 pm No matter what I do it insists upon rotating the text 90º and printing it that way.
I have discovered an ugly workaround, which I'm primarily documenting for myself. It seems as if the bug may cause the orientation to come from the default paper size. So I created the desired paper size in Preview's Print dialog, assigned it as the default, and then OpenOffice would print the page as desired. I was not able to determine a way to create and set a new default paper size using OpenOffice dialogs. I used Preview to create the paper size though I could also have used TextEdit, Safari, or other Apple programs.

Quit OpenOffice if it is running. OpenOffice seems to determine the default paper size only when launched.

Launch Preview → File → Take screenshot → From entire screen → Wait about 10 seconds (this creates a preview document)
File → Print → Paper size → Manage custom sizes
Untitled → Rename to Foo → Width → 4 → Height → 1.5
→ PDF → Open in Preview → Preview → Quit (I don't want to print anything, just create a paper size)

 → System Preferences → Printers and Scanners → Default paper size → Foo → System Preferences → Quit

Expect it will take 20 minutes or so to perform the previous steps to set the appropriate default paper size. Launch OpenOffice → Open Untitled 1.odt → Format → Page → Page → Orientation → Landscape
The page in Writer looks strange.
Page in Writer
Page in Writer
202212312132.png (35.94 KiB) Viewed 10122 times
However, File → Print shows it will print the way we want. 102 mm is 4 inches, 38 mm is 1.5 inches.
Print dialog
Print dialog
202212312134.jpg (118.52 KiB) Viewed 10122 times
The real solution is to use LibreOffice if the bug has been fixed there.
 Edit: As of 2023-03-25 LibreOffice has the same problem: Wrong Printing Orientation issue 
Mr. Programmer
AOO 4.1.7 Build 9800, MacOS 13.7.8, iMac Intel.   The locale for any menus or Calc formulas in my posts is English (USA).
johngalt
Posts: 13
Joined: Fri Aug 19, 2011 3:42 pm

Re: Weird page size, Writer insists upon rotating it to print

Post by johngalt »

MrProgrammer wrote: Sun Jan 01, 2023 6:16 am I have discovered an ugly workaround, which I'm primarily documenting for myself.
You are definitely on to something. The fact that the Print dialog and function is related to Preview is one I had not considered before. This is new information and gives me something to work with. Thank you for that!

My preliminary experimentation with your suggestion has yet to be successful — the Print dialog and PDF output still bears its incorrect "vertical" orientation no matter what I do, but I need to look at it again from a fresh perspective. There appears to be an interrelationship with Portrait vs. Landscape and the label dimensions and I am having difficulty comprehending how they affect one another. I wish that cursed "portrait / landscape" terminology had never been invented :shock: but it's too late for that now.
OpenOffice 4.1.11 / macOS 11.7.3
johngalt
Posts: 13
Joined: Fri Aug 19, 2011 3:42 pm

Re: [Issue] Weird page size, Writer insists upon rotating it to print

Post by johngalt »

Bought LibreOffice. Same exact problem.

:(
Screen Shot 2023-01-05 at 8.00.25 PM.jpg
Screen Shot 2023-01-05 at 8.00.25 PM.jpg (114.68 KiB) Viewed 9606 times
It seems the crux of the problem is that OO (and LO) both insist upon swapping my chosen width and height when changing the page format from Portrait to Landscape, and vice versa. No matter what. Even if that were ok it rotates the text 90º and that's just rude.
OpenOffice 4.1.11 / macOS 11.7.3
User avatar
Zizi64
Volunteer
Posts: 11508
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: [Issue] Weird page size, Writer insists upon rotating it to print

Post by Zizi64 »

i just created a sample file in my LO 6.1.6 version on Windows 10. The page properties: 10x4 cm Horizontal, zero margins. This is a Custom Page size with extreme size data.

The Print setting show me different page sizes when I choose different printers.
Here is the (minimal?) page size of my physical Printer ("Brother DCP..." laser):
Brother Printer.png
Brother Printer.png (32.09 KiB) Viewed 9555 times
Maybe these are the minimal paper sizes what the printers can handle. (???) Supposed cause: the actual Page size is smaller than the Paper size what the printer van handle...

Even the Microsoft virtual PDF printer shows a "special page size" - (I supposed it before: a VIRTUAL printer can handle ANY page sizes... (maybe it is not true???)
MS Vrtual PDF printer.png
MS Vrtual PDF printer.png (34.14 KiB) Viewed 9555 times
Some printers not changed the "orientation". But the virtual printer named PDF24 shows same behavior that you have: the orientation of the text is changed - relative to the paper (or the paper orientation is changed...)!
Printers.png
Printers.png (36.07 KiB) Viewed 9555 times
Tibor Kovacs, Hungary; LO7.5.8/25.8.5.2 /Win7-10-11 x64Prof.
PortableApps: LO3.3.0-25.8.5.2;AOO4.1.14
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
JeJe
Volunteer
Posts: 3134
Joined: Wed Mar 09, 2016 2:40 pm

Re: [Issue] Weird page size, Writer insists upon rotating it to print

Post by JeJe »

A workaround might be to rotate the text 90 degrees perhaps?

Format menu/character/Position tab/Rotation/scaling

The more complicated your design the more awkward that will be to work with of course...

Edit:
drawing toolbar text boxes can also be rotated.
Windows 10, Openoffice 4.1.11, LibreOffice 7.4.0.3 (x64)
johngalt
Posts: 13
Joined: Fri Aug 19, 2011 3:42 pm

Re: [Issue] Weird page size, Writer insists upon rotating it to print

Post by johngalt »

That's a great idea and I really appreciate your thinking about it, but the result is just a mess:
Untitled 2.jpg
Untitled 2.jpg (90.15 KiB) Viewed 9435 times
I am nearly certain the macOS version of both OO and LO are inexorably linked to its Preview app, and that's where the problem ultimately lies. It probably works exactly as expected in Windows which is why everyone seems so confused about it.

None of my Mac workarounds seem to be working. In an ideal world Preview would simply respect my definitions of "vertical" and "horizontal" instead of attempting to be too clever. Obviously tractor fed labels go in and out of line feed printers "vertically" despite the longer dimension being horizontal.
OpenOffice 4.1.11 / macOS 11.7.3
johngalt
Posts: 13
Joined: Fri Aug 19, 2011 3:42 pm

Re: [Issue] Weird page size, Writer insists upon rotating it to print

Post by johngalt »

I can find no solution to this problem, but a workaround is to use an Avery Pages template for 4" x 1.5" US Letter size full sheet labels. Their template number is 5159. Populate the left column and ignore the right column.

You can only print a full sheet but I already concluded that would be the case.

:(
OpenOffice 4.1.11 / macOS 11.7.3
Locked