yakpdf (1.0)

Download OpenAPI specification:Download

A practical HTML to PDF API

Whether you need invoices for your e-commerce or advanced reports for your moonshot startup, don't get distracted! Leave the PDF generation to us and keep focus on your core business.

Get Started!

Generate a PDF

Generate a PDF

Generate a PDF from a URL or HTML string.

Authorizations:
api-key
Request Body schema: application/json
required
SourceOptions (object) or SourceOptions (object) (SourceOptions)
object (PdfOptions)
Array of objects (AddStyleTagOptions)
Array of objects (AddScriptTagOptions)
Array of objects (SetCookieOptions)
object (SetHeaderOptions)

WARNING: these headers are set on every request, so avoid adding secrets or tokens if you are unsure about the security implications

See also: https://pptr.dev/api/puppeteer.page.setextrahttpheaders/

any (WaitOptions)

Responses

Request samples

Content type
application/json
{
  • "source": {
    },
  • "pdf": {
    },
  • "wait": {
    }
}

Response samples

Content type
application/json
{ }