From 457f93a60b350b506a801e84d9b72b0662c6f1f3 Mon Sep 17 00:00:00 2001 From: orensbruli Date: Sun, 14 Jan 2024 12:43:33 +0100 Subject: [PATCH] gs --- .github/workflows/github_action_build.yml | 2 +- Dockerfile | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/github_action_build.yml b/.github/workflows/github_action_build.yml index e88fb36..3cf68e3 100644 --- a/.github/workflows/github_action_build.yml +++ b/.github/workflows/github_action_build.yml @@ -40,7 +40,7 @@ jobs: run: docker cp latex-container:/latex_content/rendered.pdf output_uncompressed.pdf - name: compress pdf - run: ghostscript -sDEVICE=pdfwrite -dCompatibilityLevel=1.5 -dPDFSETTINGS=/ebook -dNOPAUSE -dQUIET -dBATCH -dPrinted=false -sOutputFile=output.pdf output_uncompressed.pdf + run: gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.5 -dPDFSETTINGS=/ebook -dNOPAUSE -dQUIET -dBATCH -dPrinted=false -sOutputFile=output.pdf output_uncompressed.pdf - name: Upload PDF as Artifact uses: actions/upload-artifact@v4 diff --git a/Dockerfile b/Dockerfile index d8ccd35..871be34 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,7 +24,9 @@ RUN wget --output-document=/usr/local/bin/yq https://github.com/mikefarah/yq/rel yq --version RUN apt-get update && apt-get install -y \ - fonts-roboto-slab \ + fonts-roboto-slab + +RUN apt-get update && apt-get install -y \ ghostscript # Set working directory