Swagger OPG PDF Generator (1.0.0)

Download OpenAPI specification:Download

:pdf: This is a PDF Server that allows the conversion of a HTML document into a PDF using the chromium engine and puppeteer

pdf

Generate PDF from HTML Document

Allows you to pass a HTML document as a string into the endpoint and return a application/pdf document

header Parameters
strip-anchor-tags
boolean

Strip all anchor tag hrefs from links on page.

margin-top
integer

Set the top margin in pixels of the PDF

margin-bottom
integer

Set the bottom margin in pixels of the PDF

margin-left
integer

Set the left margin in pixels of the PDF

margin-right
integer

Set the right margin in pixels of the PDF

title
required
string

The title of the document that should be added for accessibility purposes.

subject
required
string

The subject that should be added for accessibility purposes that describes the intent of the document

print-background
boolean

Whether the PDF renderer should include background images when rendering the PDF.

emulate-media-type
string

Set whether the PDF renderer should use the print or screen CSS for styling

Request Body schema: text/html

HTML document to render to a PDF

any

Responses

Response samples

Content type
application/json
{
  • "message": "string"
}

healthcheck

Check status of PDF Service

Check the status of the PDF Service to ensure the process is running

Responses

Response samples

Content type
application/json
"string"