From 505601bd6ee848be2aff84d264ae9583ae96c64a Mon Sep 17 00:00:00 2001 From: Henry Stiles Date: Mon, 27 Apr 2015 10:11:22 -0600 Subject: Fix Bug #695951 Portion of page cut off. Implement the PJL command EDGETOEDGE, not only does this enable full bleed but it also shifts the logical page to the left allowing printing of graphics that would have been clipped because they extended past the physical page edge. --- pcl/pcpage.c | 9 ++++++++- pl/pjparse.c | 1 + 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/pcl/pcpage.c b/pcl/pcpage.c index ee2180998..f7e175ea7 100644 --- a/pcl/pcpage.c +++ b/pcl/pcpage.c @@ -181,7 +181,14 @@ update_xfm_state(pcl_state_t * pcs, bool reset_initial) ); pxfmst->lp2pg_mtx.tx += loff; pxfmst->lp2pg_mtx.ty += toff; - if (pcs->personality == rtl) + + /* if RTL mode or there is PJL requesting full bleed the offsets + * of the logical page are 0. + */ + if ((pcs->personality == rtl) || + (!pjl_proc_compare(pcs->pjls, + pjl_proc_get_envvar(pcs->pjls, "edgetoedge"), "YES"))) + offset = 0; else offset = ((pxfmst->lp_orient & 0x1) != 0 ? psize->offset_landscape diff --git a/pl/pjparse.c b/pl/pjparse.c index c75005b06..ae401c0e7 100644 --- a/pl/pjparse.c +++ b/pl/pjparse.c @@ -78,6 +78,7 @@ static const pjl_envir_var_t pjl_factory_defaults[] = { {"formlines", "60"}, {"formlines_set", "off"}, {"widea4", "no"}, + {"edgetoedge", "no"}, {"fontsource", "I"}, {"fontnumber", "0"}, {"pitch", "10.00"}, -- cgit v1.2.1