A standalone, fast, and portable HTML to PDF generator.
421
You can run it directly:
docker run -p 3000:3000 farhansyah/html-to-pdf
Send a HTTP POST request with the body:
{
"content": "<h1>Your content here</h1>",
"options": {
"format": "A4",
"margin": {
"top": 10,
"left": 10
}
}
}
| Key | Type | Description |
|---|---|---|
content | string (required) | Any HTML string will do. Most of the time, you'll get the PDF exactly as you see in your browser. You can use css class and styles in it. |
options | Puppeteer.PDFOptions (optional) | You can pass the options to configure the Puppeteer page |
| Key | Description |
|---|---|
CONCURRENCY | puppeteer-cluster concurrency options -> 1:PAGE, 2:CONTEXT, 3:BROWSER. Default: 2 |
MAX_CONCURRENCY | Max concurrency number. (Max number of tabs/pages). Default: 5 |
Content type
Image
Digest
sha256:4bcc14ca5…
Size
341.2 MB
Last updated
over 3 years ago
docker pull farhansyah/html-to-pdf