import requests
URL = "https://pdf-merger-easily.herokuapp.com/pdfmerge"
print(URL)
files = (
("file", open("1.pdf", "rb")),
("file", open("2.pdf", "rb")),
("file", open("3.pdf", "rb")),
)
print(files, sep="\n")
resp = requests.post(URL, files=files)
print(resp)
with open("out-merged.pdf", "wb") as fw:
fw.write(resp.content)
print("Complete")
-
Notifications
You must be signed in to change notification settings - Fork 0
AVIPAGHADAR1729/pdf-merge
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|