From: Michael R Sweet Date: Mon, 13 Apr 2026 18:00:52 +0000 (-0400) Subject: Also allow a length of 841 points. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1244db67db841f30b85be8256090b1532faaea02;p=thirdparty%2Fcups.git Also allow a length of 841 points. --- diff --git a/tools/ippevepcl.c b/tools/ippevepcl.c index f20940a192..fef5479de7 100644 --- a/tools/ippevepcl.c +++ b/tools/ippevepcl.c @@ -129,7 +129,7 @@ pcl_start_page( pcl_top = header->HWResolution[1] / 6; pcl_bottom = header->cupsHeight - header->HWResolution[1] / 6 - 1; - if (header->PageSize[1] == 842 && header->cupsWidth >= (8 * header->HWResolution[0])) + if ((header->PageSize[1] == 841 || header->PageSize[1] == 842) && header->cupsWidth >= (8 * header->HWResolution[0])) { /* A4 gets special side margins to expose an 8" print area */ pcl_left = (header->cupsWidth - 8 * header->HWResolution[0]) / 2;