diff options
author | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2020-08-15 05:22:28 +0000 |
---|---|---|
committer | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2020-08-15 05:22:28 +0000 |
commit | b853cbf367ed4366c6bf0e1ef5b91bf96a8dce86 (patch) | |
tree | 1f813541c8534e58a3bd8e4337a85ca0c7a48e11 /Master | |
parent | b6d8bce286fc4faf556be20cc76c0817af0b8d6d (diff) |
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
Diffstat (limited to 'Master')
4 files changed, 20 insertions, 4 deletions
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 |