Python HTML to PDF
Convert HTML or URL to PDF in Python with a simple API request.
import requests
resp = requests.post(
"https://shipany2-pdf-sandbox.vercel.app/api/pdf",
json={"url": "https://example.com"}
)
open("out.pdf","wb").write(resp.content)