summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorKen Sharp <ken.sharp@artifex.com>2022-08-20 11:05:33 +0100
committerKen Sharp <ken.sharp@artifex.com>2022-08-20 11:06:55 +0100
commit644970756fcbd70e3eb7371031b7b7cd68c54232 (patch)
tree6ed643809363d0d327f830a2900b7def67a08b38 /doc
parenteba3379360caec1d881d96c5d51ed4282278cd1f (diff)
downloadghostpdl-644970756fcbd70e3eb7371031b7b7cd68c54232.tar.gz
ps2write - fix PSPageOptions with multi-page input
Commit 7d6d69ff17c43664482fe0dc34676a46ba551d93 accidentally broke PSPageOptions with multi-page input, because the array of strings was freed on every page. This commit fixes that problem; note you cannot change PSPageOptions once it has been set, except by restoring back to the point before the device was opened. Also the documentation formatting was slightly broken, fix that at the same time.
Diffstat (limited to 'doc')
-rw-r--r--doc/VectorDevices.htm4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/VectorDevices.htm b/doc/VectorDevices.htm
index fd9b91629..437685f27 100644
--- a/doc/VectorDevices.htm
+++ b/doc/VectorDevices.htm
@@ -1117,21 +1117,21 @@ There are also two additional (not Adobe-standard) Distiller parameters, specifi
<dd>No default value. If defined, the contents of the string will be emitted in the output PostScript prolog
enclosed within %%BeginSetup and %%EndSetup comments. This is intended as a means of introducing device-specific document wide
setup or configuration options into the output. Default media selection, printer resolution etc might be included here.
+</dd>
<code>/PSPageOptions</code><em> array of strings</em>
-</dd>
<dd>No default value. If defined, the contents of the strings in the array will be emitted in the output PostScript at the start
of each page, one string per page, enclosed within %%BeginPageSetup and %%EndPageSetup comments. This is intended as a means of introducing device-specific
setup or configuration options into the output on a page by page basis. The strings are used from the array sequentially, if there are more
pages than strings then we 'wrap round' and start again with the first string. This makes it convenient to do setup for even/odd pages
by simply including 2 strings in the array.
+</dd>
<p>
Note: executing setpagedevice will reset distiller parameters to the default, if you use any of these options via setdistillerparams, and
expect to execute setpagedevice, you should set /LockDistillerParams true. Ordinarily the PDF interpreter executes setpagedevice for
every page in order to set the media size.
</p>
-</dd>
</dt>
</dl>