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

オープン
#261 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
68/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
c
領域
backend

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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).
主要言語
C
スター
20
フォーク
89
平均マージ
13時間 37分
マージ済み PR(30日)
50

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

OpenPrinting/libcupsfilters のほかの issue

OpenPrinting/libcupsfilters の issue をすべて見る

似ている issue

C の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。