Embed ICC profile in .ps (fixing Ghostscript 9.28 compatibility)
Previously we included the filename, which required Postscript to run with file access enabled. For security, Ghostscript 9.28 enables ``-dSAFER`` and as such, no longer permits access to any file by default. This fix is necessary for compatibility with Ghostscript 9.28. We use ASCII85 for a slightly more compact representation.
This commit is contained in:
@@ -259,6 +259,7 @@ def generate_pdfa(
|
||||
"-dQUIET",
|
||||
"-dBATCH",
|
||||
"-dNOPAUSE",
|
||||
"-dSAFER",
|
||||
"-dCompatibilityLevel=" + str(pdf_version),
|
||||
"-sDEVICE=pdfwrite",
|
||||
"-dAutoRotatePages=/None",
|
||||
|
||||
Reference in New Issue
Block a user