Francois augmente artificiellement les prix en virant de petits details...
darcs-hash:20060414210422-d1718-191d0f95a09a4b2cf881165a73c018df2383c5fa.gz
This commit is contained in:
parent
8f2f2247d7
commit
f0da1a6c37
1 changed files with 2 additions and 2 deletions
|
@ -419,7 +419,7 @@ def cout(fic_impr):
|
|||
|
||||
if (fic_impr.couleur):
|
||||
# Convertit les pdf en png couleur
|
||||
(status, rep) = commands.getstatusoutput("nice -n 5 gs -sDEVICE=png16m -r30 -dBATCH -dNOPAUSE -dSAFER -dPARANOIDSAFER -dGraphicsAlphaBits=4 -dTextAlphaBits=4 -dMaxBitmap=50000000 -sOutputFile=%s -q %s" % (nom_png,fic_impr.nom_fichier_pdf))
|
||||
(status, rep) = commands.getstatusoutput("nice -n 5 gs -sDEVICE=png16m -r30 -dBATCH -dNOPAUSE -dSAFER -dPARANOIDSAFER -dGraphicsAlphaBits=4 -dTextAlphaBits=4 -dMaxBitmap=50000000 -sOutputFile=%s%%d -q %s" % (nom_png,fic_impr.nom_fichier_pdf))
|
||||
if status:
|
||||
return "ERREUR : Fichier invalide. Aucun png n'a ete cree.\n"
|
||||
|
||||
|
@ -449,7 +449,7 @@ def cout(fic_impr):
|
|||
impression.c_tambour_noir * faces+cout_noir * total_noir)
|
||||
else:
|
||||
# Convertit les pdf en png
|
||||
(status, rep) = commands.getstatusoutput("nice -n 5 gs -sDEVICE=pnggray -r30 -dBATCH -dNOPAUSE -dSAFER -dPARANOIDSAFER -dGraphicsAlphaBits=4 -dTextAlphaBits=4 -dMaxBitmap=50000000 -sOutputFile=%s -q %s" % (nom_png, fic_impr.nom_fichier_pdf))
|
||||
(status, rep) = commands.getstatusoutput("nice -n 5 gs -sDEVICE=pnggray -r30 -dBATCH -dNOPAUSE -dSAFER -dPARANOIDSAFER -dGraphicsAlphaBits=4 -dTextAlphaBits=4 -dMaxBitmap=50000000 -sOutputFile=%s%%d -q %s" % (nom_png, fic_impr.nom_fichier_pdf))
|
||||
if status:
|
||||
return "ERREUR : Fichier invalide. Aucun png n'a été créé.\n"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue