Skip to content

A super simple, easy to deploy HTML to PDF microservice (powered by Puppeteer)

License

Notifications You must be signed in to change notification settings

matthaywardwebdesign/camelot

Repository files navigation

camelot

A super simple, easy to deploy HTML to PDF microservice (powered by Puppeteer)

Running

To start camelot in development mode run npm run dev

Example request

Converting raw HTML to pdf

POST http://localhost:7331/raw

Request

{
  "html": "<h1>Hello world</h1>"
}

Response

{
  "path":"/docs/f5995286-9fc5-4e21-971c-269390c109de.pdf"
}

Options

  • html <String> (Required) The raw HTML string
  • sendFile <Boolean> Whether or not to return the generated PDF directly instead of just a URL

Running under Docker

Simply run docker-compose up

About

A super simple, easy to deploy HTML to PDF microservice (powered by Puppeteer)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published