diff options
author | Henry Stiles <henry.stiles@artifex.com> | 2015-04-27 10:11:22 -0600 |
---|---|---|
committer | Henry Stiles <henry.stiles@artifex.com> | 2015-04-27 10:18:39 -0600 |
commit | 505601bd6ee848be2aff84d264ae9583ae96c64a (patch) | |
tree | 431adf47aa5404f63c33e144b30a3125b4e4d40e | |
parent | b742626e8ec7d976535395316f7986097982b73b (diff) | |
download | ghostpdl-505601bd6ee848be2aff84d264ae9583ae96c64a.tar.gz |
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.
-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"}, |