282,31 → 282,19 |
|
int callGS(const QStringList & args_in) |
{ |
QStringList args; |
|
/* these parameters are always the same */ |
args.append(ScApp->Prefs.gs_exe); |
args.append("-q"); |
args.append("-dNOPAUSE"); |
QString cmd1 = ScApp->Prefs.gs_exe; |
cmd1 += " -q -dNOPAUSE"; |
if (ScApp->HavePngAlpha != 0) |
args.append("-sDEVICE=png16m"); |
cmd1 += " -sDEVICE=png16m"; |
else |
args.append("-sDEVICE=pngalpha"); |
cmd1 += " -sDEVICE=pngalpha"; |
if (ScApp->Prefs.gs_antiText) |
args.append("-dTextAlphaBits=4"); |
cmd1 += " -dTextAlphaBits=4"; |
if (ScApp->Prefs.gs_antiGraph) |
args.append("-dGraphicsAlphaBits=4"); |
|
/* insert specific arguments */ |
QStringList p; |
p = args_in; |
args += args_in; |
/* insert last unspecific arguments */ |
args.append("-c"); |
args.append("showpage"); |
args.append("-c"); |
args.append("quit"); |
return System(args); |
cmd1 += " -dGraphicsAlphaBits=4"; |
QString extArgs = args_in.join(" "); |
cmd1 += " " + extArgs + " -c showpage -c quit"; |
return system(cmd1); |
} |
|
int copyFile(QString source, QString target) |