summaryrefslogtreecommitdiff
path: root/gpdl
diff options
context:
space:
mode:
authorRobin Watts <Robin.Watts@artifex.com>2021-06-09 15:33:16 +0100
committerRobin Watts <Robin.Watts@artifex.com>2021-08-10 11:06:14 +0100
commit09a246ab21cab8e926f0d625641c44c628b78b08 (patch)
tree36e946536750bad4e3622d0b4ae99a6ef4ffc618 /gpdl
parent1820019588377543f92d29d3f46e973ab4903d7c (diff)
downloadghostpdl-09a246ab21cab8e926f0d625641c44c628b78b08.tar.gz
Add -dRESETRESOURCES option for gpdl.
In this instance 'RESOURCES' means fonts, macros, symbol sets etc. This applies to PCL (and maybe others), but not Postscript resources. Default (and setting this to 0) gives the behaviour where resources are never reset based upon job language changes. Setting this to 1 causes resources to be reset between jobs (whenever we return to PJL). Setting this to 2 causes resources to be reset whenever we "change language". For this setting, we do not count returning to PJL and reentering the same language as being a language change. (Includes fixes and code from Henry Stiles).
Diffstat (limited to 'gpdl')
-rw-r--r--gpdl/jbig2top.c3
-rw-r--r--gpdl/jp2ktop.c3
-rw-r--r--gpdl/jpgtop.c3
-rw-r--r--gpdl/pngtop.c3
-rw-r--r--gpdl/psitop.c3
-rw-r--r--gpdl/pwgtop.c3
-rw-r--r--gpdl/tifftop.c3
7 files changed, 14 insertions, 7 deletions
diff --git a/gpdl/jbig2top.c b/gpdl/jbig2top.c
index a9ba74889..4a453c273 100644
--- a/gpdl/jbig2top.c
+++ b/gpdl/jbig2top.c
@@ -608,5 +608,6 @@ const pl_interp_implementation_t jbig2_implementation = {
jbig2_impl_report_errors,
jbig2_impl_dnit_job,
jbig2_impl_deallocate_interp_instance,
- NULL
+ NULL, /* jbig2_impl_reset */
+ NULL /* interp_client_data */
};
diff --git a/gpdl/jp2ktop.c b/gpdl/jp2ktop.c
index ef69fd2f5..3ceba9b07 100644
--- a/gpdl/jp2ktop.c
+++ b/gpdl/jp2ktop.c
@@ -721,5 +721,6 @@ const pl_interp_implementation_t jp2k_implementation = {
jp2k_impl_report_errors,
jp2k_impl_dnit_job,
jp2k_impl_deallocate_interp_instance,
- NULL
+ NULL, /* jp2k_impl_reset */
+ NULL /* interp_client_data */
};
diff --git a/gpdl/jpgtop.c b/gpdl/jpgtop.c
index 652ca4832..56651a262 100644
--- a/gpdl/jpgtop.c
+++ b/gpdl/jpgtop.c
@@ -870,5 +870,6 @@ const pl_interp_implementation_t jpg_implementation = {
jpg_impl_report_errors,
jpg_impl_dnit_job,
jpg_impl_deallocate_interp_instance,
- NULL
+ NULL, /* jpg_impl_reset */
+ NULL /* interp_client_data */
};
diff --git a/gpdl/pngtop.c b/gpdl/pngtop.c
index ea042b5d4..fad4e2fa2 100644
--- a/gpdl/pngtop.c
+++ b/gpdl/pngtop.c
@@ -795,5 +795,6 @@ const pl_interp_implementation_t png_implementation = {
png_impl_report_errors,
png_impl_dnit_job,
png_impl_deallocate_interp_instance,
- NULL
+ NULL, /* png_impl_reset */
+ NULL /* interp_client_data */
};
diff --git a/gpdl/psitop.c b/gpdl/psitop.c
index 3f49d8209..e509c4618 100644
--- a/gpdl/psitop.c
+++ b/gpdl/psitop.c
@@ -663,5 +663,6 @@ const pl_interp_implementation_t ps_implementation = {
ps_impl_report_errors,
ps_impl_dnit_job,
ps_impl_deallocate_interp_instance,
- NULL
+ NULL, /* ps_impl_reset */
+ NULL /* interp_client_data */
};
diff --git a/gpdl/pwgtop.c b/gpdl/pwgtop.c
index fbf860e2e..a8d628695 100644
--- a/gpdl/pwgtop.c
+++ b/gpdl/pwgtop.c
@@ -717,5 +717,6 @@ const pl_interp_implementation_t pwg_implementation = {
pwg_impl_report_errors,
pwg_impl_dnit_job,
pwg_impl_deallocate_interp_instance,
- NULL
+ NULL, /* pwg_impl_reset */
+ NULL /* interp_client_data */
};
diff --git a/gpdl/tifftop.c b/gpdl/tifftop.c
index dbd86bf29..10a9ebcc7 100644
--- a/gpdl/tifftop.c
+++ b/gpdl/tifftop.c
@@ -1123,5 +1123,6 @@ const pl_interp_implementation_t tiff_implementation = {
tiff_impl_report_errors,
tiff_impl_dnit_job,
tiff_impl_deallocate_interp_instance,
- NULL
+ NULL, /* tiff_impl_reset */
+ NULL /* interp_client_data */
};