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

Đang mở
#261 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
68/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
c
Lĩnh vực
backend

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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).
Ngôn ngữ chính
C
Star
20
Fork
89
Merge trung bình
13 giờ 37 phút
Pull request đã merge (30 ngày)
50

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của OpenPrinting/libcupsfilters

Tất cả issue của OpenPrinting/libcupsfilters

Issue tương tự

Thêm issue về C

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.