🎉 Launch Alert BrewPDF is completely free during our early alpha phase. Discover more 4,460 PDF's created
This endpoint allows you to convert HTML to a PDF document.
POST https://brewpdf.com/api/create
{
"code": "String of HTML content to be converted into PDF."
}
application/json
The API will respond with the following:
curl -X POST brewpdf.com/api/create \
-H "Content-Type: application/json" \
-d '{"code": "<h1>Hello, World!</h1>"}' \
-o output.pdf
This endpoint allows you to convert the content of a URL to a PDF document.
POST https://brewpdf.com/api/create
{
"url": "URL of the webpage to be converted into PDF."
}
application/json
The API will respond with the following:
curl -X POST brewpdf.com/api/create \
-H "Content-Type: application/json" \
-d '{"url": "https://brewpdf.com"}' \
-o output.pdf
This endpoint allows you to convert the content of a URL to a PDF document using a GET request.
GET https://brewpdf.com/api/create?url=[URL]
url
The URL of the webpage to be converted into PDF. It should be URL encoded if necessary.
The API will respond similarly to the POST requests:
curl "https://brewpdf.com/api/create?url=https%3A%2F%2Fexample.com" -o output.pdf