diff options
author | Reinhard Kotucha <reinhard.kotucha@web.de> | 2019-05-10 23:51:26 +0000 |
---|---|---|
committer | Reinhard Kotucha <reinhard.kotucha@web.de> | 2019-05-10 23:51:26 +0000 |
commit | e92598acb3a0a20ac8ff31928d84188de2360b7f (patch) | |
tree | efb05c3dd914979fc62f92be27b52b7d54ef3e9b /Master/tlpkg/tlgs/lib/pdf2dsc.ps | |
parent | a0dbdd61992f743553c4c357edf3af0cfc3cd0b9 (diff) |
Upgrade gs-9.26 -> gs-9.27
git-svn-id: svn://tug.org/texlive/trunk@51079 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/tlpkg/tlgs/lib/pdf2dsc.ps')
-rw-r--r-- | Master/tlpkg/tlgs/lib/pdf2dsc.ps | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/Master/tlpkg/tlgs/lib/pdf2dsc.ps b/Master/tlpkg/tlgs/lib/pdf2dsc.ps index 878788fcd1f..d836bf32038 100644 --- a/Master/tlpkg/tlgs/lib/pdf2dsc.ps +++ b/Master/tlpkg/tlgs/lib/pdf2dsc.ps @@ -1,4 +1,4 @@ -% Copyright (C) 2001-2018 Artifex Software, Inc. +% Copyright (C) 2001-2019 Artifex Software, Inc. % All Rights Reserved. % % This software is provided AS-IS with no warranty, either express or @@ -52,10 +52,7 @@ systemdict /.setsafe known { .setsafe } if /DSCstring 255 string def /MediaTypes 10 dict def - GS_PDF_ProcSet begin - pdfdict begin - PDFfile - pdfopen begin + PDFfile runpdfbegin /FirstPage where { pop } { /FirstPage 1 def } ifelse /LastPage where { pop } { /LastPage pdfpagecount def } ifelse @@ -108,13 +105,12 @@ systemdict /.setsafe known { .setsafe } if (%%BeginProlog\n) puts (/Page null def\n/Page# 0 def\n/PDFSave null def\n) puts (/DSCPageCount 0 def\n) puts - (/DoPDFPage {dup /Page# exch store pdfgetpage pdfshowpage } def\n) puts - (GS_PDF_ProcSet begin\npdfdict begin\n) puts + (/DoPDFPage {dup /Page# exch store dup dopdfpages } def\n) puts (%%EndProlog\n) puts (%%BeginSetup\n) puts DSCfile PDFname write==only ( \(r\) file { DELAYSAFER { .setsafe } if } stopped pop\n) puts - ( pdfopen begin\n) puts + ( runpdfbegin\n) puts ( process_trailer_attrs\n) puts (%%EndSetup\n) puts @@ -239,13 +235,10 @@ systemdict /.setsafe known { .setsafe } if DSCfile exch DSCstring cvs writestring ( DoPDFPage\n) puts } for - currentdict pdfclose - end - end - end + runpdfend % write trailer (%%Trailer\n) puts -(currentdict pdfclose\nend\nend\nend\n) puts +(runpdfend\n) puts (%%EOF\n) puts % close output file and exit DSCfile closefile |