texlive[56116] Master/texmf-dist/scripts/tlgs/gswin32: ps2pdf: allow

commits+kakuto at tug.org commits+kakuto at tug.org
Sat Aug 15 07:22:28 CEST 2020


Revision: 56116
          http://tug.org/svn/texlive?view=revision&revision=56116
Author:   kakuto
Date:     2020-08-15 07:22:28 +0200 (Sat, 15 Aug 2020)
Log Message:
-----------
ps2pdf: allow transparency in gs-9.50 for CompatibilityLevel > 1.3 (w32 only).

Modified Paths:
--------------
    trunk/Master/texmf-dist/scripts/tlgs/gswin32/ps2pdf.tlu
    trunk/Master/texmf-dist/scripts/tlgs/gswin32/ps2pdf12.tlu
    trunk/Master/texmf-dist/scripts/tlgs/gswin32/ps2pdf13.tlu
    trunk/Master/texmf-dist/scripts/tlgs/gswin32/ps2pdf14.tlu

Modified: trunk/Master/texmf-dist/scripts/tlgs/gswin32/ps2pdf.tlu
===================================================================
--- trunk/Master/texmf-dist/scripts/tlgs/gswin32/ps2pdf.tlu	2020-08-14 23:53:45 UTC (rev 56115)
+++ trunk/Master/texmf-dist/scripts/tlgs/gswin32/ps2pdf.tlu	2020-08-15 05:22:28 UTC (rev 56116)
@@ -127,7 +127,7 @@
 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 @@
 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
 

Modified: trunk/Master/texmf-dist/scripts/tlgs/gswin32/ps2pdf12.tlu
===================================================================
--- trunk/Master/texmf-dist/scripts/tlgs/gswin32/ps2pdf12.tlu	2020-08-14 23:53:45 UTC (rev 56115)
+++ trunk/Master/texmf-dist/scripts/tlgs/gswin32/ps2pdf12.tlu	2020-08-15 05:22:28 UTC (rev 56116)
@@ -127,7 +127,7 @@
 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 @@
 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
 

Modified: trunk/Master/texmf-dist/scripts/tlgs/gswin32/ps2pdf13.tlu
===================================================================
--- trunk/Master/texmf-dist/scripts/tlgs/gswin32/ps2pdf13.tlu	2020-08-14 23:53:45 UTC (rev 56115)
+++ trunk/Master/texmf-dist/scripts/tlgs/gswin32/ps2pdf13.tlu	2020-08-15 05:22:28 UTC (rev 56116)
@@ -127,7 +127,7 @@
 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 @@
 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
 

Modified: trunk/Master/texmf-dist/scripts/tlgs/gswin32/ps2pdf14.tlu
===================================================================
--- trunk/Master/texmf-dist/scripts/tlgs/gswin32/ps2pdf14.tlu	2020-08-14 23:53:45 UTC (rev 56115)
+++ trunk/Master/texmf-dist/scripts/tlgs/gswin32/ps2pdf14.tlu	2020-08-15 05:22:28 UTC (rev 56116)
@@ -127,7 +127,7 @@
 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 @@
 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
 



More information about the tex-live-commits mailing list.