From 606254d9418c7e685ca2d49b2a47f44bb64263d0 Mon Sep 17 00:00:00 2001 From: David Faux Date: Mon, 28 Oct 2019 07:28:40 +0200 Subject: [PATCH 1/7] Corrected typos Correct `extend` to `extent` Correct `are` to `as` --- docs/index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/index.html b/docs/index.html index 79c8d652..75ba1248 100755 --- a/docs/index.html +++ b/docs/index.html @@ -1394,10 +1394,10 @@ $resp = $client->post($request);

The API uses under the hood intricate programs.

Gotenberg tries to abstract as much complexity as possible but it can -only do it to a certain extend.

+only do it to a certain extent.

For instance, Office and Merge endpoints will start respectively as many LibreOffice (unoconv) and PDTk -instances are there are requests. The limitation here is the available memory and CPU usage.

+instances as there are requests. The limitation here is the available memory and CPU usage.

On another hand, for the HTML, URL and Markdown endpoints, the API does only 6 conversions in parallel. Indeed, Google Chrome misbehaves if there are too many concurrent conversions.

@@ -1506,4 +1506,4 @@ restart your Gotenberg instances from time to time to ensure a nominal behaviour - \ No newline at end of file + From 1e1cb8fe578e1649b032b00115ed83765ce16a0d Mon Sep 17 00:00:00 2001 From: taylor Date: Sat, 19 Oct 2019 14:34:30 +1100 Subject: [PATCH 2/7] Make the gotenberg user owner of /tini binary to fix running image in cloud environments --- build/package/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/package/Dockerfile b/build/package/Dockerfile index a64bc6c0..8758787f 100644 --- a/build/package/Dockerfile +++ b/build/package/Dockerfile @@ -42,7 +42,7 @@ LABEL authors="Julien Neuhart " ARG TINI_VERSION -ADD https://github.com/krallin/tini/releases/download/v${TINI_VERSION}/tini /tini +ADD --chown=gotenberg https://github.com/krallin/tini/releases/download/v${TINI_VERSION}/tini /tini RUN chmod +x /tini ENTRYPOINT [ "/tini", "--" ] From dae39113f62188f0958be8e43edb7f2afdebc22d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=93scar=20de=20Arriba?= Date: Thu, 31 Oct 2019 17:02:29 +0100 Subject: [PATCH 3/7] use statically linked version of tini --- build/package/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/package/Dockerfile b/build/package/Dockerfile index 8758787f..09a8f9af 100644 --- a/build/package/Dockerfile +++ b/build/package/Dockerfile @@ -42,7 +42,7 @@ LABEL authors="Julien Neuhart " ARG TINI_VERSION -ADD --chown=gotenberg https://github.com/krallin/tini/releases/download/v${TINI_VERSION}/tini /tini +ADD --chown=gotenberg https://github.com/krallin/tini/releases/download/v${TINI_VERSION}/tini-static /tini RUN chmod +x /tini ENTRYPOINT [ "/tini", "--" ] From ad4a16cc4e1213785c26fb9827f23610481500a7 Mon Sep 17 00:00:00 2001 From: Julien Neuhart Date: Thu, 31 Oct 2019 17:03:51 +0100 Subject: [PATCH 4/7] adding community clients section --- build/docs/content/02-clients.md | 4 ++++ docs/index.html | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/build/docs/content/02-clients.md b/build/docs/content/02-clients.md index 64de1e23..dedef210 100644 --- a/build/docs/content/02-clients.md +++ b/build/docs/content/02-clients.md @@ -23,3 +23,7 @@ Then the PHP client: ```bash $ composer require thecodingmachine/gotenberg-php-client ``` + +## Community clients + +* [JavaScript/TypeScript client](https://github.com/yumauri/gotenberg-js-client) by [yumauri](https://github.com/yumauri) diff --git a/docs/index.html b/docs/index.html index 79c8d652..e71b0f4a 100755 --- a/docs/index.html +++ b/docs/index.html @@ -216,6 +216,14 @@ Gotenberg API is available at http://localhost:3
$ composer require thecodingmachine/gotenberg-php-client
 
+

Community clients

+ + +
From 94acb0c6ae4e7125694e213a95a2665146fa8004 Mon Sep 17 00:00:00 2001 From: Julien Neuhart Date: Thu, 31 Oct 2019 17:12:34 +0100 Subject: [PATCH 5/7] updating documentation with details on how to make background-color and color CSS properties work in header/footer --- build/docs/content/04-html.md | 1 + docs/index.html | 1 + 2 files changed, 2 insertions(+) diff --git a/build/docs/content/04-html.md b/build/docs/content/04-html.md index 3f147df8..f0134ed2 100644 --- a/build/docs/content/04-html.md +++ b/build/docs/content/04-html.md @@ -103,6 +103,7 @@ There are some limitations: * `footer.html` CSS properties override the ones from `header.html` * only fonts installed in the Docker image are loaded (see the [fonts section](#fonts)) * images only work using a `base64` encoded source (`fonts section)
  • images only work using a base64 encoded source (<img src="data:image/png;base64, iVBORw0K... />)
  • +
  • background-color and color CSS properties require an additional -webkit-print-color-adjust: exact CSS property in order to work
  • Cloud Run (Google Cloud)

    + +

    If you’re looking for cost savings, you might be interested by Cloud Run.

    +

    In the following examples, we will assume your Gotenberg API is available at http://localhost:3000.

    From 090ff3da138b7a50661a8759a6506542277f7497 Mon Sep 17 00:00:00 2001 From: Julien Neuhart Date: Thu, 31 Oct 2019 17:44:11 +0100 Subject: [PATCH 7/7] fixing typos in markdown files too --- build/docs/content/12-scalability.md | 4 ++-- docs/index.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build/docs/content/12-scalability.md b/build/docs/content/12-scalability.md index 7b30ef41..b1a062fc 100644 --- a/build/docs/content/12-scalability.md +++ b/build/docs/content/12-scalability.md @@ -5,10 +5,10 @@ title: Scalability The API uses under the hood intricate programs. Gotenberg tries to abstract as much complexity as possible but it can -only do it to a certain extend. +only do it to a certain extent. For instance, [Office](#office) and [Merge](#merge) endpoints will start respectively as many LibreOffice (unoconv) and PDTk -instances are there are requests. The limitation here is the available memory and CPU usage. +instances as there are requests. The limitation here is the available memory and CPU usage. On another hand, for the [HTML](#html), [URL](#url) and [Markdown](#markdown) endpoints, the API does only 6 conversions in parallel. Indeed, Google Chrome misbehaves if there are too many concurrent conversions. diff --git a/docs/index.html b/docs/index.html index 531944f4..fe626bfb 100755 --- a/docs/index.html +++ b/docs/index.html @@ -1521,4 +1521,4 @@ restart your Gotenberg instances from time to time to ensure a nominal behaviour

    - + \ No newline at end of file