page: fix pdf prolog for ghostscript >= 9.27 (#296)

Ghostscript 9.27 removed GS_PDF_ProcSet and pdfdict due to a security
issue (see https://security-tracker.debian.org/tracker/CVE-2019-3839).

This fix was contributed by @onyxperidot (see #279).

Fixes #279
This commit is contained in:
Fazlul Shahriar 2019-12-08 20:20:22 -05:00 committed by Dan Cross
parent 3d08a066b1
commit 01a29ffe9d
2 changed files with 2 additions and 4 deletions

View file

@ -16,5 +16,4 @@
" } if\n" " } if\n"
"} bind def\n" "} bind def\n"
"\n" "\n"
"GS_PDF_ProcSet begin\n" "runpdfbegin\n"
"pdfdict begin\n"

View file

@ -16,5 +16,4 @@
} if } if
} bind def } bind def
GS_PDF_ProcSet begin runpdfbegin
pdfdict begin