Skip to content
Snippets Groups Projects
Commit 2a2be31b authored by Robin Sonnabend's avatar Robin Sonnabend
Browse files

Update drucken.py for new Kopierer options Stpl/Pnch

parent 3a194afb
No related branches found
No related tags found
No related merge requests found
......@@ -25,7 +25,7 @@ parser.add_argument("--landscape", action="store_true", help="Im Querformat druc
group = parser.add_mutually_exclusive_group()
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.")
parser.add_argument("--staple", choices=['None', 'Center', 'UpperLeft', 'UpperRight'], help="Tackern. (Karman-only)")
parser.add_argument("--staple", choices=['None', 'Center', 'Front', 'Rear', 'UpperLeft', 'LowerLeft'], help="Tackern. (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("--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.")
......@@ -85,9 +85,12 @@ if args.staple:
args.karman = True
if args.karman:
if args.staple == "UpperLeft":
command += ["-o", "KCStaple=Upperleft"]
else:
command += ["-o", "KCStaple="+args.staple]
args.staple = "Rear"
elif args.staple == "LowerLeft":
args.staple = "Front"
if args.staple:
command += ["-o", "Stpl="+args.staple]
args.output_bin = "FDStackerA"
if args.punch:
if args.hoern:# or args.other:
if args.punch != 'None':
......@@ -101,7 +104,8 @@ if args.punch:
punch_option += "Hole"
if args.punch == "2":
punch_option += "EUR"
command += ["-o", "KCPunch=" + punch_option]
command += ["-o", "Pnch=" + punch_option]
args.output_bin = "FDStackerA"
if args.size:
if args.hoern and args.size == 'A3':# or args.other
parser.error("Die Drucker auf der Hörn können nicht in A3 drucken.")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment