openapi: 3.0.0 info: title: Gotenberg version: 6.3.1 license: name: MIT url: 'https://github.com/thecodingmachine/gotenberg/blob/master/LICENSE' contact: url: 'https://github.com/thecodingmachine/gotenberg' description: >- A Docker-powered stateless API for converting HTML, Markdown and Office documents to PDF. servers: - url: 'http://localhost:3000' description: Local server with the default Docker image and port paths: /convert/html: post: tags: - Gotenberg summary: Convert a given HTML file to PDF description: >- Send an HTML file called `index.html` as a multipart form request, and get the resulting PDF file. You can optionally include `header.html` and `footer.html` files as part of the request as well. An example `index.html` file can be as follows: ```html
of
``` The following classes will allow you to inject printing values in your document: - `date`: Formatted print date. - `title`: Document title. - `pageNumber`: Current page number. - `totalPage`: Total pages in the document. There are some limitations with header and footer files: - JavaScript is not executed. - External resources are not loaded. - The CSS properties are independant of the ones used in the `index.html` file. - `footer.html` CSS properties override the ones from `header.html`. - Only fonts installed in the Docker image are loaded (see the fonts section) - Images only work using a `base64` encoded source, e.g. `