last page
This commit is contained in:
parent
c72b18da39
commit
8507cb2b4e
2 changed files with 5 additions and 1 deletions
|
@ -283,7 +283,11 @@ def main():
|
||||||
pdfWriter.addPage(indpag)
|
pdfWriter.addPage(indpag)
|
||||||
|
|
||||||
#Aggiungere pagina finale
|
#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')
|
book_name = os.path.join('books', 'book' + str(book_num).zfill(2) + '.pdf')
|
||||||
with open(book_name, 'wb') as pdfOutput:
|
with open(book_name, 'wb') as pdfOutput:
|
||||||
|
|
BIN
quarta.pdf
Normal file
BIN
quarta.pdf
Normal file
Binary file not shown.
Loading…
Reference in a new issue