utilise le jolie systèmed'options aussi pour les pages.
ajoute pdf-expand darcs-hash:20061107035658-9e428-4420b70a11a30c12eb66ab9d29e40aec5a4b5312.gz
This commit is contained in:
parent
4ed0874da1
commit
8666876c08
1 changed files with 5 additions and 13 deletions
|
@ -103,9 +103,9 @@ LPR_OPTIONS = {
|
||||||
TROIS_AGRAPHE: ' -o StapleLocation=3parallel',
|
TROIS_AGRAPHE: ' -o StapleLocation=3parallel',
|
||||||
STITCHING: ' -o StapleLocation=Stitching',
|
STITCHING: ' -o StapleLocation=Stitching',
|
||||||
|
|
||||||
PAPIER_A4: ' -o pdf-paper=571x817 -o PageSize=A4',
|
PAPIER_A4: '-o InputSlot=Tray4 -o pdf-paper=571x817 -o PageSize=A4',
|
||||||
PAPIER_A4_TRANSPARENT: ' -o InputSlot=Tray1 -o Media=Transparency',
|
PAPIER_A4_TRANSPARENT: ' -o PageSize=A4 -o InputSlot=Tray1 -o Media=Transparency',
|
||||||
PAPIER_A3: ' -o pdf-paper=825x1166 -o InputSlot=Tray3 -o HPPaperPolicy=A3 -o PageSize=A3',
|
PAPIER_A3: ' -o pdf-expand -o pdf-paper=825x1166 -o InputSlot=Tray3 -o HPPaperPolicy=A3 -o PageSize=A3',
|
||||||
|
|
||||||
IMPRESSION_COULEUR: ' -o HPColorasGray=False',
|
IMPRESSION_COULEUR: ' -o HPColorasGray=False',
|
||||||
IMPRESSION_NB: ' -o HPColorasGray=True',
|
IMPRESSION_NB: ' -o HPColorasGray=True',
|
||||||
|
@ -319,8 +319,8 @@ class impression:
|
||||||
# Pour specifier l'imprimante
|
# Pour specifier l'imprimante
|
||||||
options += ' -P laserjet'
|
options += ' -P laserjet'
|
||||||
|
|
||||||
# Pour specifier le bac sortie
|
#Indique la presence d'un bac de sortie avec agrafeuse
|
||||||
options += ' -o OutputBin=Left'
|
options += " -o Option20=MBMStaplerStacker -o OutputBin=StackerStapled"
|
||||||
|
|
||||||
# Pour specifier la version du language postscript utilise par pdftops
|
# Pour specifier la version du language postscript utilise par pdftops
|
||||||
options += ' -o pdf-level3'
|
options += ' -o pdf-level3'
|
||||||
|
@ -337,20 +337,12 @@ class impression:
|
||||||
#options += " -o job-billing=%.2f" % self.cout
|
#options += " -o job-billing=%.2f" % self.cout
|
||||||
#options += ' -o job-sheets=none'
|
#options += ' -o job-sheets=none'
|
||||||
|
|
||||||
#Indique la presence d'un bac de sortie avec agrafeuse
|
|
||||||
options += " -o Option20=MBMStaplerStacker -o OutputBin=StackerDown"
|
|
||||||
|
|
||||||
# option agrafes
|
# option agrafes
|
||||||
options += LPR_OPTIONS[self._settings['agraphes']]
|
options += LPR_OPTIONS[self._settings['agraphes']]
|
||||||
|
|
||||||
# option papier
|
# option papier
|
||||||
options += LPR_OPTIONS[self._settings['papier']]
|
options += LPR_OPTIONS[self._settings['papier']]
|
||||||
if self._settings['papier'] == PAPIER_A4_TRANSPARENT:
|
|
||||||
options += ' -o InputSlot=Tray1 -o Media=Transparency'
|
|
||||||
if self._settings['papier'] == PAPIER_A4:
|
|
||||||
options += ' -o pdf-paper=571x817 -o PageSize=A4'
|
|
||||||
else:
|
|
||||||
options += ' -o pdf-paper=825x1166 -o InputSlot=Tray3 -o HPPaperPolicy=A3 -o PageSize=A3'
|
|
||||||
|
|
||||||
# option disposition
|
# option disposition
|
||||||
options += LPR_OPTIONS[self._settings['recto_verso']]
|
options += LPR_OPTIONS[self._settings['recto_verso']]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue