diff options
author | Ken Sharp <ken.sharp@artifex.com> | 2022-08-01 13:47:01 +0100 |
---|---|---|
committer | Ken Sharp <ken.sharp@artifex.com> | 2022-08-01 13:47:01 +0100 |
commit | edaecc0880573d4a1c00055970cd92fa066f09fb (patch) | |
tree | 88d179cba76f80da628e3aa8317ffff28a8d2f39 /lib | |
parent | 9d3ba211dbebfdaf88ca93f2ebd91c72ac13c80d (diff) | |
download | ghostpdl-edaecc0880573d4a1c00055970cd92fa066f09fb.tar.gz |
Bug #705699
" “Error: /invalidfileaccess in --file--” when converting PBM file to PDF"
There is no actual bug here, the user had not supplied either -dNOSAFER
or --permit-file-read on the command line to allow the interpreter to
read the input file.
However the viewpbm.ps program doesn't have that information in its
'usage' which would be useful information. So added that here, and
updated a number of other view*.ps programs which have usage information
to include this as well.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/viewcmyk.ps | 2 | ||||
-rw-r--r-- | lib/viewjpeg.ps | 3 | ||||
-rw-r--r-- | lib/viewpbm.ps | 2 | ||||
-rw-r--r-- | lib/viewpcx.ps | 2 | ||||
-rw-r--r-- | lib/viewraw.ps | 2 | ||||
-rw-r--r-- | lib/viewrgb.ps | 2 |
6 files changed, 13 insertions, 0 deletions
diff --git a/lib/viewcmyk.ps b/lib/viewcmyk.ps index e8034e533..33c5bdceb 100644 --- a/lib/viewcmyk.ps +++ b/lib/viewcmyk.ps @@ -56,6 +56,8 @@ cleartomark (Usage: gs -- viewcmyk.ps filename.cmyk width\n) print ( e.g.: gs -- viewcmyk.ps my.cmyk 2550\n) print flush + (From version 9.50 you must supply permissions for this program to read the input file(s)\n) print flush + (either by using -dNOSAFER or by supplying --permit-file-read=<filename>\n) = flush } ifelse } { pop diff --git a/lib/viewjpeg.ps b/lib/viewjpeg.ps index 71cb5d441..54453fe4d 100644 --- a/lib/viewjpeg.ps +++ b/lib/viewjpeg.ps @@ -35,6 +35,9 @@ % Usage example: % (jpeg-6/testimg.jpg) viewJPEG +% From version 9.50 you must supply permissions for this program +% to read the input file(s) either by using -dNOSAFER or by +% supplying --permit-file-read=<filename> /languagelevel where {pop languagelevel 2 lt}{true} ifelse { (JPEG needs PostScript Level 2!\n) print flush stop diff --git a/lib/viewpbm.ps b/lib/viewpbm.ps index c8d3f86bc..143a056a6 100644 --- a/lib/viewpbm.ps +++ b/lib/viewpbm.ps @@ -327,6 +327,8 @@ ( e.g.: gs [-dSCALE=#.#] [-dFITPAGE] [--] viewpbm.ps my.ppm another.ppm\n) print flush ( also -dTAG option can be used to show the pseudo-color tag image from a\n) print flush ( P7 RGB_TAG PAM file created by the bitrgbtags device.\n) print flush + (From version 9.50 you must supply permissions for this program to read the input file(s)\n) print flush + (either by using -dNOSAFER or by supplying --permit-file-read=<filename>\n) = flush } ifelse } diff --git a/lib/viewpcx.ps b/lib/viewpcx.ps index 76bfdfae6..0b549ad90 100644 --- a/lib/viewpcx.ps +++ b/lib/viewpcx.ps @@ -183,6 +183,8 @@ { cleartomark (Usage: gs -- viewpcx.ps filename.pcx ...\n) print ( e.g.: gs -- viewpcx.ps my.pcx another.pcx\n) print flush + (From version 9.50 you must supply permissions for this program to read the input file(s)\n) print flush + (either by using -dNOSAFER or by supplying --permit-file-read=<filename>\n) = flush } ifelse } diff --git a/lib/viewraw.ps b/lib/viewraw.ps index dee86e023..85438ffa1 100644 --- a/lib/viewraw.ps +++ b/lib/viewraw.ps @@ -181,6 +181,8 @@ cleartomark (Usage: gs -- viewraw filename.raw width\n) print ( e.g.: gs -- viewraw my.raw 2550\n) print flush + (From version 9.50 you must supply permissions for this program to read the input file(s)\n) print flush + (either by using -dNOSAFER or by supplying --permit-file-read=<filename>\n) = flush } ifelse } { pop diff --git a/lib/viewrgb.ps b/lib/viewrgb.ps index ab2f6d82c..c2c34fec6 100644 --- a/lib/viewrgb.ps +++ b/lib/viewrgb.ps @@ -143,6 +143,8 @@ ( e.g.: gs -- viewrgb.ps my.rgb 2550\n) print flush ( -dSCALE=### sets specific scaling \(default = 1.0\)) = flush ( -dBITS=# sets the BitsPerComponent \(1, 2, 8, 12] \(default = 1\)) = flush + (From version 9.50 you must supply permissions for this program to read the input file(s)\n) print flush + (either by using -dNOSAFER or by supplying --permit-file-read=<filename>\n) = flush } ifelse } { pop |