mirror of https://github.com/CIRCL/PyCIRCLean
Make GS conversion safer
parent
a678a1c9f7
commit
dc098dd9a8
|
@ -258,7 +258,7 @@ class KittenGroomer(KittenGroomerBase):
|
||||||
# The magic comes from here: http://svn.ghostscript.com/ghostscript/trunk/gs/doc/Ps2pdf.htm#PDFA
|
# The magic comes from here: http://svn.ghostscript.com/ghostscript/trunk/gs/doc/Ps2pdf.htm#PDFA
|
||||||
curdir = os.getcwd()
|
curdir = os.getcwd()
|
||||||
os.chdir(self.ressources_path)
|
os.chdir(self.ressources_path)
|
||||||
gs_command = '{} -dPDFA -dBATCH -dNOPAUSE -dNOOUTERSAVE -sProcessColorModel=DeviceCMYK -sDEVICE=pdfwrite -sPDFACompatibilityPolicy=1 -sOutputFile={} ./PDFA_def.ps {}'.format(
|
gs_command = '{} -dPDFA -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOOUTERSAVE -sProcessColorModel=DeviceCMYK -sDEVICE=pdfwrite -sPDFACompatibilityPolicy=1 -sOutputFile={} ./PDFA_def.ps {}'.format(
|
||||||
GS, os.path.join(curdir, tmppath), os.path.join(curdir, self.cur_file.src_path))
|
GS, os.path.join(curdir, tmppath), os.path.join(curdir, self.cur_file.src_path))
|
||||||
self._run_process(gs_command)
|
self._run_process(gs_command)
|
||||||
os.chdir(curdir)
|
os.chdir(curdir)
|
||||||
|
|
Loading…
Reference in New Issue