Printing Orientation Issue
Moderator: andrew
Forum rules
Always indicate your operating system and QCAD version.
Attach drawing files and screenshots.
Post one question per topic.
Always indicate your operating system and QCAD version.
Attach drawing files and screenshots.
Post one question per topic.
- rdtsc
- Newbie Member
- Posts: 5
- Joined: Sun May 22, 2022 11:45 pm
- Location: Ohio, USA
Re: Printing Orientation Issue
Interesting... been working on some prints for months. Have printed them fine before (all landscape A4 / "letter".) Went to print them yesterday (prior to machining, go figure), and a previously-printed-landscape drawing suddenly started printing portrait (and cutting half of the image off.)
The preview shows it as landscape, all settings are set to landscape, but it prints portrait anyhow - regardless of QCAD drawing, application, or printer setting.
Okay, so figured it was something with that machine. Took the .dxf to work, started QCAD there and printed it... lo-and-behold it's doing exactly the same thing there. Set to landscape, but prints portrait.
Home machine is running latest Mabox Linux (Manjaro, Arch.) Brother color laser printer.
Work machine is Win11, Canon B&W multi-function printer.
QCAD-CAM is 3.27.8.0
Have printer page orientations suddenly changed on the back-end for both Linux and Windows operating systems? Not sure what exactly is going on here but it's baffling.
Edit: tried it again at work, and this time the printer driver came up as portrait. Set it to landscape and it printed normally. Weird.
The preview shows it as landscape, all settings are set to landscape, but it prints portrait anyhow - regardless of QCAD drawing, application, or printer setting.
Okay, so figured it was something with that machine. Took the .dxf to work, started QCAD there and printed it... lo-and-behold it's doing exactly the same thing there. Set to landscape, but prints portrait.
Home machine is running latest Mabox Linux (Manjaro, Arch.) Brother color laser printer.
Work machine is Win11, Canon B&W multi-function printer.
QCAD-CAM is 3.27.8.0
Have printer page orientations suddenly changed on the back-end for both Linux and Windows operating systems? Not sure what exactly is going on here but it's baffling.
Edit: tried it again at work, and this time the printer driver came up as portrait. Set it to landscape and it printed normally. Weird.
-
CVH
- Premier Member
- Posts: 4995
- Joined: Wed Sep 27, 2017 4:17 pm
Re: Printing Orientation Issue
Running mostly 3.27.6.0 on Win7 32bit and all is fine even with drawings from other users.
My OS is no longer supported and I don't get the regular annoying automatic updates anymore
Meaning that everything has basically remained the same as long before 2022.
My CNC dedicated Win 10 64bit setup with a trial copy of the latest QCAD is downstrairs and that one is stand-alone ... Not connected to the net.
I only can test printing when I move and connect the printer to it, and it works flawlessly ...
... Probably because it can't connect and update the OS.
I think it is time to file a bug report on QCAD Bugtracker ... Although it is probably OS related.
https://www.ribbonsoft.com/bugtracker/
Regards,
CVH
My OS is no longer supported and I don't get the regular annoying automatic updates anymore
Meaning that everything has basically remained the same as long before 2022.
My CNC dedicated Win 10 64bit setup with a trial copy of the latest QCAD is downstrairs and that one is stand-alone ... Not connected to the net.
I only can test printing when I move and connect the printer to it, and it works flawlessly ...
... Probably because it can't connect and update the OS.
I think it is time to file a bug report on QCAD Bugtracker ... Although it is probably OS related.
https://www.ribbonsoft.com/bugtracker/
Regards,
CVH
-
bruceb1952
- Junior Member
- Posts: 11
- Joined: Wed Mar 15, 2023 1:46 am
Re: Printing Orientation Issue
This is where things get sticky... BIG dog LITTLE dog.
Who cares/needs to resolve? I'm (kind of) glad that I am not the only person encountering the problem. On the scale of things, the issue can be avoided by paying attention to the Portrait/Landscape setting before 'hitting' Print. BUT... more problematic issues may be lurking as users running later OS, different OS move forward.
CVH, thanks for your continued interest.
Who cares/needs to resolve? I'm (kind of) glad that I am not the only person encountering the problem. On the scale of things, the issue can be avoided by paying attention to the Portrait/Landscape setting before 'hitting' Print. BUT... more problematic issues may be lurking as users running later OS, different OS move forward.
CVH, thanks for your continued interest.
-
CVH
- Premier Member
- Posts: 4995
- Joined: Wed Sep 27, 2017 4:17 pm
- rdtsc
- Newbie Member
- Posts: 5
- Joined: Sun May 22, 2022 11:45 pm
- Location: Ohio, USA
Re: Printing Orientation Issue
One thing that did work Bruce, when selecting landscape still resulted in a failed print, was printing to PDF from QCAD, then opening the PDF and printing that. Going the PDF-intermediate-route will force some printer margin, so the result will be slightly zoomed-out.
Researching, tried printing an Excel spreadsheet at home (Linux) in landscape: worked fine; printer driver opened in portrait, selected landscape, all good. Tried QCAD - nope. Driver doesn't ask for portrait or landscape, seems to force portrait. Forced QCAD to portrait, result still landscape-on-portrait but shifted slightly. Using latest Linux CUPS 1:2.4.7-2. Perhaps there is an odd edge-case with this version of the Common Unix Printing System (may also affect Apple Mac CUPS users?) No talk of any issues yet but several CUPS bugs were patched August of 2023.
Edit: attached the following template for testing. It is metric on Letter portrait, for dark theme.
Researching, tried printing an Excel spreadsheet at home (Linux) in landscape: worked fine; printer driver opened in portrait, selected landscape, all good. Tried QCAD - nope. Driver doesn't ask for portrait or landscape, seems to force portrait. Forced QCAD to portrait, result still landscape-on-portrait but shifted slightly. Using latest Linux CUPS 1:2.4.7-2. Perhaps there is an odd edge-case with this version of the Common Unix Printing System (may also affect Apple Mac CUPS users?) No talk of any issues yet but several CUPS bugs were patched August of 2023.
Edit: attached the following template for testing. It is metric on Letter portrait, for dark theme.
-
bruceb1952
- Junior Member
- Posts: 11
- Joined: Wed Mar 15, 2023 1:46 am
Re: Printing Orientation Issue
rdtsc,
I concur with your additional 'testing' that QCAD has ownership of fixing. I also saw correct behavior via alternate apps but continued to have the problem with QCAD.
Along with paying attention to the Orientation BEFORE hitting Print button, I also concur that going PDF route is a work-around but not ideal.
I see that CVH has logged the issue in QCAD development environment, so I trust a fix will POP out sometime.
Bruce
I concur with your additional 'testing' that QCAD has ownership of fixing. I also saw correct behavior via alternate apps but continued to have the problem with QCAD.
Along with paying attention to the Orientation BEFORE hitting Print button, I also concur that going PDF route is a work-around but not ideal.
I see that CVH has logged the issue in QCAD development environment, so I trust a fix will POP out sometime.
Bruce
- andrew
- Site Admin
- Posts: 8816
- Joined: Fri Mar 30, 2007 6:07 am
Re: Printing Orientation Issue
bruceb1952: I cannot reproduce the problem here. Unfortunately, this seems to be an issue somewhere between Qt and your particular printer driver. QCAD sets the page size and orientation as configured. QCAD might be able to provide a workaround for the problem if we can understand it properly though. This will likely require some iterations, so we would need your help with this, since we cannot test any potential workaround here.
There's a slight possibility that your driver changes the page settings while presenting the printer dialog. To verify this, you can help us by copying the attached file into your QCAD installation under:
C:\Program Files\QCAD Professional\scripts\File\Print\Print.js
Note that the "C:\Program Files\QCAD Professional" part might be different on your installation. You need to find the folder where QCAD is actually installed. The scripts\File\Print folders need to be created and Print.js copied into it.
This is not a potential fix. It simply prints the page settings into the QCAD command line history before and after showing the printer dialog. If these don't match that would make a workaround possible. If you can let us know what is printed in the command line history while printing, that might be helpful thanks.
The output should look similar like this:
There's a slight possibility that your driver changes the page settings while presenting the printer dialog. To verify this, you can help us by copying the attached file into your QCAD installation under:
C:\Program Files\QCAD Professional\scripts\File\Print\Print.js
Note that the "C:\Program Files\QCAD Professional" part might be different on your installation. You need to find the folder where QCAD is actually installed. The scripts\File\Print folders need to be created and Print.js copied into it.
This is not a potential fix. It simply prints the page settings into the QCAD command line history before and after showing the printer dialog. If these don't match that would make a workaround possible. If you can let us know what is printed in the command line history while printing, that might be helpful thanks.
The output should look similar like this:
Code: Select all
Page size before dialog:297/210
Page orientation before dialog:Landscape
Page size after dialog:297/210
Page orientation after dialog:Landscape-
CVH
- Premier Member
- Posts: 4995
- Joined: Wed Sep 27, 2017 4:17 pm
Re: Printing Orientation Issue
Andrew,
...QCAD/scripts/File does not exist on a standard installation.
Only including ...QCAD/scripts/File/Print/Print.js corrupted the tool.
A) Print Preview does not switch to preview mode but the Options Toolbar is displayed.
B) After hitting the button 'Print ...' the tool halted after:
Code: Select all
Page size before dialog:609.6/914.4
Page orientation before dialog:PortraitKilled the QCAD process.
A new trial halted loading QCAD at 73%
Regards,
CVH
- andrew
- Site Admin
- Posts: 8816
- Joined: Fri Mar 30, 2007 6:07 am
Re: Printing Orientation Issue
Right, thanks. I've removed the file as this seems to be not possible, at least on Windows.
-
bruceb1952
- Junior Member
- Posts: 11
- Joined: Wed Mar 15, 2023 1:46 am
Re: Printing Orientation Issue
CVH, Thanks for your intervention. I accept that there might be something exclusively 'wrong' in my environment that will need a deeper analysis. That deeper analysis activity could get me in over my head. Hopefully this issue is generic.
andrew, Thanks for your intervention.
Bruce
andrew, Thanks for your intervention.
Bruce
-
CVH
- Premier Member
- Posts: 4995
- Joined: Wed Sep 27, 2017 4:17 pm
Re: Printing Orientation Issue
Similar issue reported in the German forum.
Not specified but I assume Linux Ubuntu 22.04.2 LTS
Regards,
CVH
Not specified but I assume Linux Ubuntu 22.04.2 LTS
Regards,
CVH
-
bruceb1952
- Junior Member
- Posts: 11
- Joined: Wed Mar 15, 2023 1:46 am
Re: Printing Orientation Issue
CVH,
Just recvd notice of your new contribution to the print orientation issue. I almost forgot about it. I'm guessing the German forum is in english or you're practicing you german.
The wheels of progress turn slowly... especially for low critical issues.
The fact that it is not a show stopper is a very fortunate thing.
Bruce
Just recvd notice of your new contribution to the print orientation issue. I almost forgot about it. I'm guessing the German forum is in english or you're practicing you german.
The wheels of progress turn slowly... especially for low critical issues.
The fact that it is not a show stopper is a very fortunate thing.
Bruce
-
CVH
- Premier Member
- Posts: 4995
- Joined: Wed Sep 27, 2017 4:17 pm
Re: Printing Orientation Issue
No, the German forum is in ... German.bruceb1952 wrote: ↑Mon Jan 06, 2025 7:39 pmI'm guessing the German forum is in english or you're practicing you german.
And no, I can read it fairly good ... Writing is rather a translation although it doesn't feel/looks right.
In the Flemish side of Belgium 4 languages where mandatory at school in my days.
Well ... There is no progress ...bruceb1952 wrote: ↑Mon Jan 06, 2025 7:39 pmThe wheels of progress turn slowly... especially for low critical issues.
The fact that it is not a show stopper is a very fortunate thing.
I would consider it a show stopper if it happens for me too.
Until now I can't replicate it but I suspect that more and more users will be confronted with it.
Export to PDF and printing that is still reported as an option.
BTW, have you seems that this topic has 22386 views and counting (70/day).
The German topic has already 1203 views in 4 days.
I suspect that views by bots also counts.
Regards,
CVH
- rdtsc
- Newbie Member
- Posts: 5
- Joined: Sun May 22, 2022 11:45 pm
- Location: Ohio, USA
Re: Printing Orientation Issue
Hi, just chiming in that I updated to the latest QCAG/CAM version 3.32.1 and am still experiencing this issue on Mabox/Manjaro/Arch Linux.
Since my previous post, Linux CUPS 2.4.7-2 has updated to 2.4.11-2. Nothing relevant found on their bugtracker: https://github.com/apple/cups/issues?q= ... 0landscape although it seems like CUPS is geared more towards macs anymore - perhaps not an issue on that OS. Did a search on qt5.14 printer landscape portrait, nothing. Administering CUPS from http://localhost:631 can change all aspects of the printer, from driver used to default settings - except there is no portrait/landscape default of course.
I concur that the QCAD UI displays portrait/landscape as expected. The issue seems to be the printer driver not "seeing" portrait mode from QCAD, or otherwise ignoring it.
Here is what my print dialog looks like. In "Options" at bottom there are no portrait/landscape settings. In "Properties" there is landscape / portrait selection, which is preset to landscape. Toggling this makes no difference (always prints portrait.)
Just tested printing portrait in LibreOffice Calc: works. Attached:
So this still seems to be an issue for some of us. Whether that be a QT issue, CUPS issue, or printer driver issue, is anyone's guess. But other software seems to print landscape fine.
Since my previous post, Linux CUPS 2.4.7-2 has updated to 2.4.11-2. Nothing relevant found on their bugtracker: https://github.com/apple/cups/issues?q= ... 0landscape although it seems like CUPS is geared more towards macs anymore - perhaps not an issue on that OS. Did a search on qt5.14 printer landscape portrait, nothing. Administering CUPS from http://localhost:631 can change all aspects of the printer, from driver used to default settings - except there is no portrait/landscape default of course.
I concur that the QCAD UI displays portrait/landscape as expected. The issue seems to be the printer driver not "seeing" portrait mode from QCAD, or otherwise ignoring it.
Here is what my print dialog looks like. In "Options" at bottom there are no portrait/landscape settings. In "Properties" there is landscape / portrait selection, which is preset to landscape. Toggling this makes no difference (always prints portrait.)
Just tested printing portrait in LibreOffice Calc: works. Attached:
So this still seems to be an issue for some of us. Whether that be a QT issue, CUPS issue, or printer driver issue, is anyone's guess. But other software seems to print landscape fine.
- Attachments
-
- 2025-02-15_14-49 - Results.jpg (736.21 KiB) Viewed 59922 times
-
- 2025-02-15_14-12 - Trying to print in QCAD.png (170.57 KiB) Viewed 59922 times
-
CVH
- Premier Member
- Posts: 4995
- Joined: Wed Sep 27, 2017 4:17 pm
Re: Printing Orientation Issue
@ rdtsc,
I or we users can do nothing more than keep on updating the relevant bug report.
Additional links where added.
Unsure if that as any influence, Andrew has commented: 'Not reproducible.'
At best one could vote the issue up.
Regards,
CVH