Native landscape PDF is scaled down into portrait page instead of rotated (no print-scaling set)

Open
#261 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
68/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
c
Domain
backend

Research direction

Reproduce the issue with a native landscape A4 PDF using lp -d PRINTER landscape.pdf and inspect the cfFilterUniversal -> pdftopdf -> cfFilterGhostscript chain from the CUPS debug log. Compare the behavior with print-scaling=fit or fill and verify that the default path rotates the landscape page to fill the portrait A4 sheet without requiring orientation-requested.

Written by the indexing model from the issue text.

Description

Distribution: Manjaro KDE
Versions: cups 2:2.4.19, cups-filters 2.0.1, libcupsfilters 2.2.1, libppd 2.1.1, ghostscript 10.07.1
Printers: Canon PIXMA G3430 (driverless IPP / Canon driver) and HP Deskjet 1515 (hplip), same behaviour on both

Steps to reproduce:

  1. Create a PDF with a native landscape A4 page (842x595)
  2. lp -d PRINTER landscape.pdf (no options)

Expected: page is rotated to fit the portrait A4 sheet, filling it.
Actual: the page is scaled down and printed in the top third of the portrait sheet.

Notes:

  • Printing from LibreOffice behaves the same. The job options contain only
    PageSize=A4 sides=one-sided ...; no orientation-requested is sent.
  • lp -o landscape on a portrait PDF works.
  • lp -o print-scaling=fit and -o print-scaling=fill on the landscape PDF
    rotate the page correctly.
  • Filter chain from the CUPS debug log: cfFilterUniversal -> pdftopdf ->
    cfFilterGhostscript (gs with DEVICEWIDTHPOINTS=595 DEVICEHEIGHTPOINTS=842).
Dominant language
C
Stars
20
Forks
89
Avg merge
13h 37m
Merged PRs (30d)
50

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from OpenPrinting/libcupsfilters

All issues in OpenPrinting/libcupsfilters

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.