Skip to content

Commit

Permalink
gs
Browse files Browse the repository at this point in the history
  • Loading branch information
orensbruli committed Jan 14, 2024
1 parent e1debe6 commit 457f93a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/github_action_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 457f93a

Please sign in to comment.