summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Sharp <ken.sharp@artifex.com>2015-10-13 10:11:08 +0100
committerKen Sharp <ken.sharp@artifex.com>2016-02-08 16:29:14 +0000
commit1889f6de619ef20a0ba6c618269456b3fd128f98 (patch)
tree6376aedcfd132aef7312e436cf39f63af072eea2
parentf15a1fe16c8838a2623998ff3e09c7b74b919d8d (diff)
downloadghostpdl-1889f6de619ef20a0ba6c618269456b3fd128f98.tar.gz
Add pdfmark processing to PXL. I'm not sure ths is actually required, as
the processing is done in pcl_do_reset, but it won't do any harm to have it here just in case.
-rw-r--r--pcl/pxl/pxsessio.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/pcl/pxl/pxsessio.c b/pcl/pxl/pxsessio.c
index 71a1765dd..9bc240570 100644
--- a/pcl/pxl/pxsessio.c
+++ b/pcl/pxl/pxsessio.c
@@ -42,6 +42,7 @@
#include "pllfont.h"
#include "pxptable.h"
#include "pxvendor.h"
+#include "gzstate.h"
/* Imported operators */
px_operator_proc(pxCloseDataSource);
@@ -283,6 +284,19 @@ pxBeginSession(px_args_t * par, px_state_t * pxs)
return -1;
}
+
+ {
+ pjl_envvar_t *pres;
+
+ pres = pjl_proc_get_envvar(pxs->pjls, "pdfmark");
+
+ if (strlen(pres) > 0) {
+ pcl_pjl_pdfmark(pxs->memory, pxs->pgs->device, pres);
+ }
+
+ pjl_proc_set_envvar(pxs->pjls, "pdfmark", "");
+ pjl_proc_set_defvar(pxs->pjls, "pdfmark", "");
+ }
}
return 0;
}