blank pages

This commit is contained in:
itec78 2021-08-19 13:45:18 +02:00
parent de61cfa258
commit c72b18da39

View file

@ -260,6 +260,8 @@ def main():
# aggiungere copertina
pdfWriter.addPage(copertina(str(pagstart).zfill(3) + " - " + str(pagend).zfill(3)))
pdfWriter.addBlankPage()
indtext = ""
for vgo_num in [str(x).zfill(3) for x in range(pagstart, pagend + 1)]:
pdf_name = os.path.join('pdf', vgo_num + '.pdf')
@ -274,15 +276,20 @@ def main():
except:
pass
# aggiungere indice ed eventualmente pagina finale
pdfWriter.addBlankPage()
# aggiungere indice
for indpag in indice(indtext):
pdfWriter.addPage(indpag)
#Aggiungere pagina finale
pdfWriter.addBlankPage()
book_name = os.path.join('books', 'book' + str(book_num).zfill(2) + '.pdf')
with open(book_name, 'wb') as pdfOutput:
pdfWriter.write(pdfOutput)
if __name__ == "__main__":