pdf2book.py: epilog=onipa
This commit is contained in:
parent
3edb33b811
commit
0cf6076655
@ -6,7 +6,7 @@ import argparse
|
||||
parser = argparse.ArgumentParser(
|
||||
prog='pdf2book',
|
||||
description='pdf2book rearranges pages for signature printing ',
|
||||
epilog='AQOABA')
|
||||
epilog='onipa')
|
||||
|
||||
parser.add_argument('pdf_file') # positional argument
|
||||
#parser.add_argument('pages', type=int) # positional argument
|
||||
@ -23,7 +23,7 @@ args = parser.parse_args()
|
||||
signature_size=args.signature
|
||||
if signature_size < 0 :
|
||||
# print("signature size must be greater than 0!")
|
||||
print("signature size must be positive integer!")
|
||||
print("signature size must be non-negative integer!")
|
||||
exit(1)
|
||||
|
||||
reader = PdfReader(args.pdf_file)
|
||||
@ -40,9 +40,8 @@ def get_reorder(number_of_pages: int, signature_size: int):
|
||||
panu=number_of_pages
|
||||
sisi=signature_size
|
||||
|
||||
# s| 1 | 2 | 3 | 4 |
|
||||
#p\s| 1 | 2 | 3 | 4 |
|
||||
#-----------------------
|
||||
#p | | | |
|
||||
# 1 | 4 | 8 | 12 | 16 |
|
||||
# 2 | 4 | 8 | 12 | 16 |
|
||||
# 3 | 4 | 8 | 12 | 16 |
|
||||
|
Loading…
Reference in New Issue
Block a user