Skip to content

Project For PDF-Merge API Build with Flask and PyPDF

Notifications You must be signed in to change notification settings

AVIPAGHADAR1729/pdf-merge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PDF-MERGE API Using Flask and PyPDF

In This Project Use API to Merge Multiple PDFs into Single PDF

Usage Description

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")

About

Project For PDF-Merge API Build with Flask and PyPDF

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published