[kde] [Bug 479333] New: Unable to print non-A4 page sizes correctly with KDE applications

Leisquid Li bugzilla_noreply at kde.org
Wed Jan 3 00:58:09 GMT 2024


https://bugs.kde.org/show_bug.cgi?id=479333

            Bug ID: 479333
           Summary: Unable to print non-A4 page sizes correctly with KDE
                    applications
    Classification: I don't know
           Product: kde
           Version: unspecified
          Platform: Arch Linux
                OS: Linux
            Status: REPORTED
          Severity: major
          Priority: NOR
         Component: general
          Assignee: unassigned-bugs at kde.org
          Reporter: leisquid at outlook.com
  Target Milestone: ---

SUMMARY
When printing with KDE applications such as Gwenview and Okular, the final page
size or scaling output to the printer is incorrect, even if the page size is
set to any particular value.
I originally found this problem when testing Canon printers. When I was
printing with Gwenview and set the page size to a particular small size, some
printers would print an image scaled to A4 size, while others would stop
working and warn that the corresponding paper was missing - when querying the
error details on the printer, it showed that the paper size required for the
print job was A4. It was later tested that the output to the printer was still
A4 regardless of the page size. Changing the default options for the printer
didn't help.
The same problem occurs with CUPS virtual PDF printers, not just Canon
printers.
But this problem doesn't occur if you print with non-KDE applications, such as
GIMP or Chromium. I think that this bug is related to KDE applications, rather
than printer drivers.

STEPS TO REPRODUCE
Take the CUPS virtual PDF printer as an example. If you have a physical
printer, you can use it for testing as well.
1. Install cups and cups-pdf, and start the CUPS service.
2. Add a CUPS virtual PDF printer, or your physical printer.
3. Print an image or PDF document with any KDE application: open the "Print"
dialog, click "Properties", and set Page size to a value different from A4.
Orientation can also be set to "Portrait" or "Landscape".

OBSERVED RESULT
Printing results vary depending on the KDE application used. For example, when
printing with Gwenview, the page size of the document output through the
printer is A4, regardless of the page size selected; when printing with
KolourPaint, the page size is correct, but the Orientation of the printed
document is always Portrait, regardless of whether the Orientation is set to
"Portrait" or "Landscape".

EXPECTED RESULT
Prints the correct image according to the page size and orientation settings.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux x86_64
Kernel Version: 6.6.8-arch1-1 (64-bit)
KDE Plasma Version: 5.27.10
KDE Frameworks Version: 5.113.0
Qt Version: 5.15.11
Graphics Platform: X11
OpenPrinting CUPS Version: 2.4.7-2

ADDITIONAL INFORMATION
When a picture is being printed, the contents of the picture are processed and
placed in a SPOOLing queue with a file name usually "dxxxx-xxx", sometimes as a
PDF document. You will find that the page size, orientation, and scaling of
this document are all correct if you open it. So I'm wondering if maybe the KDE
applications are outputting wrong information about the print job?

Best regards,
Leisquid Li

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Unassigned-bugs mailing list