Nov. 4, 2023, 6:54 p.m. | Željko Šević

DEV Community dev.to

Gotenberg is a Docker-based stateless API for PDF generation from HTML and Markdown files.


To get started, configure Docker compose and run the docker-compose up command.



version: '3.8'

services:
gotenberg:
image: gotenberg/gotenberg:7
ports:
- 3000:3000


API is available on http://localhost:3000 address.


Run the following commands to generate PDFs



  • from the given URL



  curl \
--request POST 'http://localhost:3000/forms/chromium/convert/url' \
--form 'url="https://sparksuite.github.io/simple-html-invoice-template/"' \
--form 'pdfFormat="PDF/A-1a"' \
-o curl-url-response.pdf



  • from the given HTML file



  curl \
--request …

api command docker docker-compose files form generate html image markdown node pdf services stateless url

Senior Machine Learning Engineer

@ GPTZero | Toronto, Canada

ML/AI Engineer / NLP Expert - Custom LLM Development (x/f/m)

@ HelloBetter | Remote

Doctoral Researcher (m/f/div) in Automated Processing of Bioimages

@ Leibniz Institute for Natural Product Research and Infection Biology (Leibniz-HKI) | Jena

Seeking Developers and Engineers for AI T-Shirt Generator Project

@ Chevon Hicks | Remote

Principal Data Architect - Azure & Big Data

@ MGM Resorts International | Home Office - US, NV

GN SONG MT Market Research Data Analyst 11

@ Accenture | Bengaluru, BDC7A