Skip to content

Instantly share code, notes, and snippets.

@danielfeitopin
Created December 18, 2024 20:11
Show Gist options
  • Save danielfeitopin/099594d4b4af4a168764c2a06079d287 to your computer and use it in GitHub Desktop.
Save danielfeitopin/099594d4b4af4a168764c2a06079d287 to your computer and use it in GitHub Desktop.
It is what it is...
from pypdf import PdfReader, PdfWriter
FILES = [
# File names
]
writer = PdfWriter()
for file in FILES:
reader = PdfReader(file)
for page in range(len(reader.pages)):
writer.add_page(reader.pages[page])
with open("Documentación Asociación.pdf", "wb") as f:
writer.write(f)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment