CUPS often adds "orientation-requested=0" to the options in the
filter/backend command line, meaning automatic selection. pdftopdf()
did not support this value and therefore did not do the correct
settings making margins of rotated landscape pages not be done
correctly.
(manually backported commit
947634e296644f2af4e92871e72788579a70253f)
CHANGES IN V1.28.12
+ - pdftopdf: Fix orientation-requested = 0. Consider
+ this as "automatic selection and not as error.
- pdftopdf: Fixed all combinations of print-scaling and
number-up for printers with asymmetric margins (top !=
bottom or left != right) and for input files containing
* 3: 0 degrees, 4: 90 degrees, 5: -90 degrees, 6: 180 degrees
*/
if ((ipprot<3)||(ipprot>6)) {
- error("Bad value (%d) for orientation-requested, using 0 degrees",ipprot);
+ if (ipprot)
+ error("Bad value (%d) for orientation-requested, using 0 degrees",
+ ipprot);
+ param.noOrientation = true;
} else {
static const Rotation ipp2rot[4]={ROT_0, ROT_90, ROT_270, ROT_180};
param.orientation=ipp2rot[ipprot-3];