diff options
-rw-r--r-- | pcl/pcpage.c | 9 | ||||
-rw-r--r-- | pl/pjparse.c | 1 |
2 files changed, 9 insertions, 1 deletions
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"}, |