Created
March 28, 2018 16:10
-
-
Save parzibyte/30ca4876b01c997d2a056b66a2de8536 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from PyPDF2 import PdfFileMerger | |
pdfs = ["PdfFileWriter.pdf", "RectangleObject.pdf"] | |
nombre_archivo_salida = "salida.pdf" | |
fusionador = PdfFileMerger() | |
for pdf in pdfs: | |
fusionador.append(open(pdf, 'rb')) | |
with open(nombre_archivo_salida, 'wb') as salida: | |
fusionador.write(salida) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment