summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKen Sharp <ken.sharp@artifex.com>2021-10-06 10:08:10 +0100
committerKen Sharp <ken.sharp@artifex.com>2021-10-06 10:08:10 +0100
commitf0e2e035276ca050c5853df9d59a4cd0b6394671 (patch)
tree34fdb5b7a87d82732a45644f510242d51323900c /lib
parent7feec04dc7629527c9f01a27593c93e2dfa3671b (diff)
downloadghostpdl-f0e2e035276ca050c5853df9d59a4cd0b6394671.tar.gz
Fix Bug 704520. Fix example in viewJPEG to add setting HWResolution.
Diffstat (limited to 'lib')
-rw-r--r--lib/viewjpeg.ps2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/viewjpeg.ps b/lib/viewjpeg.ps
index 554048dff..71cb5d441 100644
--- a/lib/viewjpeg.ps
+++ b/lib/viewjpeg.ps
@@ -157,7 +157,7 @@ end % JPEGdict
} bind def
% This lets you do stuff on the command line like:
-% gs -sDEVICE=pdfwrite -o stuff%03d.pdf viewjpeg.ps -c "(image.jpg) << /PageSize 2 index viewJPEGgetsize 2 array astore >> setpagedevice viewJPEG"
+% gs -sDEVICE=pdfwrite -o stuff%03d.pdf viewjpeg.ps -c "(image.jpg) << /PageSize 2 index viewJPEGgetsize 2 array astore /HWResolution [ 72 72 ] >> setpagedevice viewJPEG"
% so the output size matches the original image.
/viewJPEGgetsize { % <file|string> ==> width height
save