From b853cbf367ed4366c6bf0e1ef5b91bf96a8dce86 Mon Sep 17 00:00:00 2001 From: Akira Kakuto Date: Sat, 15 Aug 2020 05:22:28 +0000 Subject: ps2pdf: allow transparency in gs-9.50 for CompatibilityLevel > 1.3 (w32 only). git-svn-id: svn://tug.org/texlive/trunk@56116 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/scripts/tlgs/gswin32/ps2pdf.tlu | 6 +++++- Master/texmf-dist/scripts/tlgs/gswin32/ps2pdf12.tlu | 6 +++++- Master/texmf-dist/scripts/tlgs/gswin32/ps2pdf13.tlu | 6 +++++- Master/texmf-dist/scripts/tlgs/gswin32/ps2pdf14.tlu | 6 +++++- 4 files changed, 20 insertions(+), 4 deletions(-) (limited to 'Master/texmf-dist/scripts/tlgs') diff --git a/Master/texmf-dist/scripts/tlgs/gswin32/ps2pdf.tlu b/Master/texmf-dist/scripts/tlgs/gswin32/ps2pdf.tlu index b0debe869df..fdee5bd072c 100755 --- a/Master/texmf-dist/scripts/tlgs/gswin32/ps2pdf.tlu +++ b/Master/texmf-dist/scripts/tlgs/gswin32/ps2pdf.tlu @@ -127,7 +127,7 @@ local progname, options, file=parse_cmdline() check_files(progname, file, 'pdf') -- determine PDF level -local PDF_level='1.4' -- default, may be changed in the future +local PDF_level='1.5' -- default, may be changed in the future if progname == 'ps2pdf12' then PDF_level='1.2' elseif progname == 'ps2pdf13' then PDF_level='1.3' elseif progname == 'ps2pdf14' then PDF_level='1.4' @@ -138,7 +138,11 @@ end local command={} if os.type == 'unix' then command={'gs'} else command={'gswin32c'} end +if os.type == 'unix' then push(command, '-P-', '-dSAFER', options, '-dCompatibilityLevel='..PDF_level) +else +push(command, '-P-', '-dDELAYSAFER', '-dALLOWPSTRANSPARENCY', options, '-dCompatibilityLevel='..PDF_level) +end if progname == 'pdfopt' then push(command, '-dFastWebView=true') end diff --git a/Master/texmf-dist/scripts/tlgs/gswin32/ps2pdf12.tlu b/Master/texmf-dist/scripts/tlgs/gswin32/ps2pdf12.tlu index b0debe869df..fdee5bd072c 100755 --- a/Master/texmf-dist/scripts/tlgs/gswin32/ps2pdf12.tlu +++ b/Master/texmf-dist/scripts/tlgs/gswin32/ps2pdf12.tlu @@ -127,7 +127,7 @@ local progname, options, file=parse_cmdline() check_files(progname, file, 'pdf') -- determine PDF level -local PDF_level='1.4' -- default, may be changed in the future +local PDF_level='1.5' -- default, may be changed in the future if progname == 'ps2pdf12' then PDF_level='1.2' elseif progname == 'ps2pdf13' then PDF_level='1.3' elseif progname == 'ps2pdf14' then PDF_level='1.4' @@ -138,7 +138,11 @@ end local command={} if os.type == 'unix' then command={'gs'} else command={'gswin32c'} end +if os.type == 'unix' then push(command, '-P-', '-dSAFER', options, '-dCompatibilityLevel='..PDF_level) +else +push(command, '-P-', '-dDELAYSAFER', '-dALLOWPSTRANSPARENCY', options, '-dCompatibilityLevel='..PDF_level) +end if progname == 'pdfopt' then push(command, '-dFastWebView=true') end diff --git a/Master/texmf-dist/scripts/tlgs/gswin32/ps2pdf13.tlu b/Master/texmf-dist/scripts/tlgs/gswin32/ps2pdf13.tlu index b0debe869df..fdee5bd072c 100755 --- a/Master/texmf-dist/scripts/tlgs/gswin32/ps2pdf13.tlu +++ b/Master/texmf-dist/scripts/tlgs/gswin32/ps2pdf13.tlu @@ -127,7 +127,7 @@ local progname, options, file=parse_cmdline() check_files(progname, file, 'pdf') -- determine PDF level -local PDF_level='1.4' -- default, may be changed in the future +local PDF_level='1.5' -- default, may be changed in the future if progname == 'ps2pdf12' then PDF_level='1.2' elseif progname == 'ps2pdf13' then PDF_level='1.3' elseif progname == 'ps2pdf14' then PDF_level='1.4' @@ -138,7 +138,11 @@ end local command={} if os.type == 'unix' then command={'gs'} else command={'gswin32c'} end +if os.type == 'unix' then push(command, '-P-', '-dSAFER', options, '-dCompatibilityLevel='..PDF_level) +else +push(command, '-P-', '-dDELAYSAFER', '-dALLOWPSTRANSPARENCY', options, '-dCompatibilityLevel='..PDF_level) +end if progname == 'pdfopt' then push(command, '-dFastWebView=true') end diff --git a/Master/texmf-dist/scripts/tlgs/gswin32/ps2pdf14.tlu b/Master/texmf-dist/scripts/tlgs/gswin32/ps2pdf14.tlu index b0debe869df..fdee5bd072c 100755 --- a/Master/texmf-dist/scripts/tlgs/gswin32/ps2pdf14.tlu +++ b/Master/texmf-dist/scripts/tlgs/gswin32/ps2pdf14.tlu @@ -127,7 +127,7 @@ local progname, options, file=parse_cmdline() check_files(progname, file, 'pdf') -- determine PDF level -local PDF_level='1.4' -- default, may be changed in the future +local PDF_level='1.5' -- default, may be changed in the future if progname == 'ps2pdf12' then PDF_level='1.2' elseif progname == 'ps2pdf13' then PDF_level='1.3' elseif progname == 'ps2pdf14' then PDF_level='1.4' @@ -138,7 +138,11 @@ end local command={} if os.type == 'unix' then command={'gs'} else command={'gswin32c'} end +if os.type == 'unix' then push(command, '-P-', '-dSAFER', options, '-dCompatibilityLevel='..PDF_level) +else +push(command, '-P-', '-dDELAYSAFER', '-dALLOWPSTRANSPARENCY', options, '-dCompatibilityLevel='..PDF_level) +end if progname == 'pdfopt' then push(command, '-dFastWebView=true') end -- cgit v1.2.3