add empty pages for evenness
This commit is contained in:
parent
1542eae5e0
commit
72a39434e8
@ -135,7 +135,12 @@ for chapter in chapters:
|
||||
outputs.append(localhost+pdffile)
|
||||
|
||||
counter+=1
|
||||
page=page+pypdftk.get_num_pages(localhost+pdffile)
|
||||
pagenr=pypdftk.get_num_pages(localhost+pdffile)
|
||||
if (pagenr % 2) != 0:
|
||||
pypdftk.concat([localhost+pdffile,localhost+'blank.pdf'],localhost+'temp.pdf')
|
||||
os.replace(localhost+'temp.pdf',localhost+pdffile)
|
||||
pagenr+=1
|
||||
page=page+pagenr
|
||||
|
||||
# compiling all the files in one big pdf!
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user