Skip to content

Commit 5c5f459

Browse files
committed
compress pdf with pdfsizeopt
1 parent 5328eb5 commit 5c5f459

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

.github/workflows/build_publish.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,9 @@ jobs:
2121
root_file: cv-gboeing.tex
2222

2323
- name: Compress PDF
24-
run: |
25-
mv cv-gboeing.pdf temp.pdf
26-
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.7 \
27-
-dPDFSETTINGS=/screen -dNOPAUSE -dQUIET -dBATCH \
28-
-dPrinted=false -sOutputFile=cv-gboeing.pdf temp.pdf
24+
run: >
25+
docker run -v "$PWD:/workdir" --rm -it ptspts/pdfsizeopt
26+
pdfsizeopt cv-gboeing.pdf cv-gboeing.pdf
2927
3028
- name: Configure AWS credentials
3129
uses: aws-actions/configure-aws-credentials@v5

0 commit comments

Comments
 (0)