last page

This commit is contained in:
itec78 2021-08-19 14:29:13 +02:00
parent c72b18da39
commit 8507cb2b4e
2 changed files with 5 additions and 1 deletions

View file

@ -283,7 +283,11 @@ def main():
pdfWriter.addPage(indpag)
#Aggiungere pagina finale
pdfWriter.addBlankPage()
#pdfWriter.addBlankPage()
pdfFileObj = open("quarta.pdf", 'rb')
pdfReader = PyPDF2.PdfFileReader(pdfFileObj)
pageObj = pdfReader.getPage(0)
pdfWriter.addPage(pageObj)
book_name = os.path.join('books', 'book' + str(book_num).zfill(2) + '.pdf')
with open(book_name, 'wb') as pdfOutput:

BIN
quarta.pdf Normal file

Binary file not shown.