parser.add_argument("-t", "--symmetry", dest="symmetry", action="store_true", help="alternate horizontal crops between odd and even pages")
parser.add_argument("-s", "--second", dest="second", help="append second file as input to append")
parser.add_argument("-r", "--rotate", dest="rotate", help="rotate page of number by 90°")
+parser.add_argument("-m", "--margin", type=float, default=4.3, help="print margin (default 4.3)")
args = parser.parse_args()
with open(args.input_file, 'rb') as file:
else:
n_pages_per_axis = 2
points_per_mm = 2.83465
- printable_margin = 4.3 * points_per_mm
+ printable_margin = args.margin * points_per_mm
printable_scale = (a4_width - 2*printable_margin)/a4_width
spine_limit = 10 * points_per_mm
half_width = a4_width / n_pages_per_axis