-
Notifications
You must be signed in to change notification settings - Fork 30
Description
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:
- Build libcups
- 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 - 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.