Skip to content

ipptransform doesn't use or preserve the input document media size for the output media size if no size is specified #102

@wifiprintguy

Description

@wifiprintguy

Describe the bug
ipptransform doesn't use or preserve the input document media size for the output media size if no size is specified. When I gave ipptransform a PDF document with US Letter pages, it converts all pages to A4 unless I overtly specified the output media size using the ' -o "media=na_letter_8.5x11in" ' option.

To Reproduce
Steps to reproduce the behavior:

  1. Build libcups
  2. Run ipptransform on onepage-letter.pdf to produce another PDF, with no media size specified:
    ./tools/ipptransform -i application/pdf -m application/pdf examples/onepage-letter.pdf > onepage-letter-no-media-specified.pdf
  3. Run ipptransform on onepage-letter.pdf to produce another PDF, with US Letter media size specified:
    ./tools/ipptransform -i application/pdf -m application/pdf -o "media=na_letter_8.5x11in" examples/onepage-letter.pdf > onepage-letter-usletter-media-specified.pdf

Expected behavior
Both files produced by ipptransform would contain the same content and page sizes.

Actual Behavior
The pages in the onepage-letter-no-media-specified.pdf file are rendered to A4 which is unexpected.

Screenshots
n/a

System Information:
System 1:
macOS 15.3.1
ippsample 94d1b3eeb6175f9a4182b38809750fb4a454e359
libcups 4a2e536

System 2:
Ubuntu 24.02
ippsample 94d1b3eeb6175f9a4182b38809750fb4a454e359
libcups 4a2e536

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions