Skip to content
Snippets Groups Projects
Commit 13c9c4ed authored by Lars Beckers's avatar Lars Beckers
Browse files

Merge branch 'mika-cups-drucken-staple-fix' into 'master'

Fix staple cups-client/files/drucken.py

See merge request !9
parents fe429ddc 0fdf5d01
No related branches found
No related tags found
1 merge request!9Fix staple cups-client/files/drucken.py
Pipeline #5335 passed
...@@ -25,7 +25,7 @@ parser.add_argument("--landscape", action="store_true", help="Im Querformat druc ...@@ -25,7 +25,7 @@ parser.add_argument("--landscape", action="store_true", help="Im Querformat druc
group = parser.add_mutually_exclusive_group() group = parser.add_mutually_exclusive_group()
group.add_argument("--fitplot", action="store_true", help="Datei auf Seitengröße skalieren.") group.add_argument("--fitplot", action="store_true", help="Datei auf Seitengröße skalieren.")
group.add_argument("--scaling", type=int, help="Datei auf n Prozent der Seite skalieren.") group.add_argument("--scaling", type=int, help="Datei auf n Prozent der Seite skalieren.")
parser.add_argument("--staple", choices=['None', 'Center', 'Front', 'Rear', 'UpperLeft', 'LowerLeft'], help="Tackern. (Karman-only)") parser.add_argument("--staple", choices=['top-left', 'bottom-left', 'top-right', 'bottom-right', 'dual-left', 'dual-top', 'dual-right', 'dual-bottom'], help="Tackern. Geht aktuell nur für eine Kopie der Datei. Bei mehr Kopien werden alle Seiten aller Kopien zusammegetackert. (Karman-only)")
parser.add_argument("--punch", choices=['None', '2Hole', '2HoleEUR', '3Hole', '4Hole', '2', '3', '4'], default=None, help="Lochen. (Karman-only)") parser.add_argument("--punch", choices=['None', '2Hole', '2HoleEUR', '3Hole', '4Hole', '2', '3', '4'], default=None, help="Lochen. (Karman-only)")
parser.add_argument("--pages-per-page", choices=['1', '2', '4', '6', '9', '16'], default='1', help="Drucke n Seiten auf eine echte Seite. (default: %(default)s)") parser.add_argument("--pages-per-page", choices=['1', '2', '4', '6', '9', '16'], default='1', help="Drucke n Seiten auf eine echte Seite. (default: %(default)s)")
parser.add_argument("--media-type", choices=['Auto', 'Highqlty', 'Prepunched', 'Transparency', 'Bond', 'Labels', 'PrnDef', 'Cardstock', 'Letterhead', 'Recycled', 'Color', 'Plain', 'Rough', 'Envelope', 'Preprinted', 'Thick', 'Vellum'], help="Wähle das eingelegte Druckerpapier aus.") parser.add_argument("--media-type", choices=['Auto', 'Highqlty', 'Prepunched', 'Transparency', 'Bond', 'Labels', 'PrnDef', 'Cardstock', 'Letterhead', 'Recycled', 'Color', 'Plain', 'Rough', 'Envelope', 'Preprinted', 'Thick', 'Vellum'], help="Wähle das eingelegte Druckerpapier aus.")
...@@ -84,12 +84,8 @@ if args.staple: ...@@ -84,12 +84,8 @@ if args.staple:
command += ["-P", "Kopierer"] command += ["-P", "Kopierer"]
args.karman = True args.karman = True
if args.karman: if args.karman:
if args.staple == "UpperLeft":
args.staple = "Rear"
elif args.staple == "LowerLeft":
args.staple = "Front"
if args.staple: if args.staple:
command += ["-o", "Stpl="+args.staple] command += ["-o", "StapleLocation=staple-"+args.staple]
args.output_bin = "FDStackerA" args.output_bin = "FDStackerA"
if args.punch: if args.punch:
if args.hoern:# or args.other: if args.hoern:# or args.other:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment