Update app.py
Browse files
app.py
CHANGED
@@ -203,7 +203,7 @@ def clear_all(history, uploaded_file_paths, chats):
|
|
203 |
pdf_reader = PdfReader(memoryFile)
|
204 |
# Gib das PDF-Objekt an PdfFileWriter weiter
|
205 |
for page in range(len(pdf_reader.pages)):
|
206 |
-
pdf_writer.
|
207 |
# Speichere das PDF-Objekt in einer neuen Datei
|
208 |
with open(file_path_download, "wb") as fp:
|
209 |
pdf_writer.write(fp)
|
|
|
203 |
pdf_reader = PdfReader(memoryFile)
|
204 |
# Gib das PDF-Objekt an PdfFileWriter weiter
|
205 |
for page in range(len(pdf_reader.pages)):
|
206 |
+
pdf_writer.add_page(pdf_reader.pages[page])
|
207 |
# Speichere das PDF-Objekt in einer neuen Datei
|
208 |
with open(file_path_download, "wb") as fp:
|
209 |
pdf_writer.write(fp)
|