Skip to content

Commit

Permalink
'GS_PDF_ProcSet' and 'pdfdict' are private as of GS 9.27
Browse files Browse the repository at this point in the history
As a workaround 'runpdfbegin' and 'runpdfend' can be used to enter/leave the dictionaries.
  • Loading branch information
mgieseki committed May 29, 2019
1 parent fb164fe commit bc51951
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/psdefs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,7 @@ const char *PSInterpreter::PSDEFS =
"mode{dup/.setblendmode sysexec<</Normal 0/Compatible 0/Multiply 1/Screen 2/Ove"
"rlay 3/SoftLight 4/HardLight 5/ColorDodge 6/ColorBurn 7/Darken 8/Lighten 9/Dif"
"ference 10/Exclusion 11/Hue 12/Saturation 13/Color 14/Luminosity 15/Compatible"
"Overprint 16>>exch get 1(setblendmode)prcmd}def/@pdfpagecount{GS_PDF_ProcSet b"
"egin pdfdict begin(r)file pdfopen begin pdfpagecount currentdict pdfclose end "
"end end}def/@pdfpagebox{GS_PDF_ProcSet begin pdfdict begin(r)file pdfopen begi"
"n dup dup 1 lt exch pdfpagecount gt or{pop}{pdfgetpage/MediaBox pget pop aload"
" pop}ifelse currentdict pdfclose end end end}def DELAYBIND{.bindnow}if ";
"Overprint 16>>exch get 1(setblendmode)prcmd}def/@pdfpagecount{(r)file runpdfbe"
"gin pdfpagecount runpdfend}def/@pdfpagebox{(r)file runpdfbegin dup dup 1 lt ex"
"ch pdfpagecount gt or{pop}{pdfgetpage/MediaBox pget pop aload pop}ifelse runpd"
"fend}def DELAYBIND{.bindnow}if ";

0 comments on commit bc51951

Please sign in to comment.