Summary: | 'invalidfileaccess -9' when opening converted file with evince | ||
---|---|---|---|
Product: | Ghostscript | Reporter: | David Kaspar // Dee'Kej <deekej> |
Component: | PS Interpreter | Assignee: | Ken Sharp <ken.sharp> |
Status: | RESOLVED INVALID | ||
Severity: | normal | ||
Priority: | P4 | ||
Version: | 9.20 | ||
Hardware: | PC | ||
OS: | Linux | ||
Customer: | Word Size: | --- | |
Attachments: | simple PDF used to reproduce the issue |
Description
David Kaspar // Dee'Kej
2017-02-01 07:02:14 UTC
The pdf2dsc PostScript program produces a file of the form: (input.pdf) (r) file { DELAYSAFER { .setsafe } if } stopped pop pdfopen begin process_trailer_attrs This has several implications: 1) It will only work with Ghostscript, since it uses Ghostscript-specific PostScript extensions. 2) If you run this with -dSAFER then it will be unable to open the file 'input.pdf' (unless it is in a location specifically permitted for opening). The 'dsc' file requires you to run with -dDELAYSAFER. I suspect that the change in behaviour is due to SAFER being fixed so that it works as expected. Which breaks this file if you run with -dSAFER. As I said on IRC, if you want a PostScript file, use the ps2write device to create a real PostScript file which is DSC-compliant *and* works with other PostScript consumers. And doesn't require you to set -dDELAYSAFER either. Oh, and you'll need to use something more recent than 8.70 to get DSC-compliant PostScript out of the ps2write device I think. |