Skip to content

Commit

Permalink
Merge pull request #19 from robert-will-brown/fix-workflow
Browse files Browse the repository at this point in the history
Fix workflow
  • Loading branch information
robert-will-brown authored Apr 11, 2024
2 parents 0bc7e7b + 512f632 commit 2958909
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/produce-pdf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,17 @@ jobs:
uses: xu-cheng/latex-action@v2
with:
root_file: rb-cv.tex
- name: Install ghostscript
run: sudo apt install ghostscript -y
- name: Workaround ghostscript vunerability protection
# A vunerabillty that existed in ghostscript no longer exists. This is to work around the temporary protection
# that was put in place
# https://stackoverflow.com/questions/52998331/imagemagick-security-policy-pdf-blocking-conversion
run: sed -i 's/rights="none" pattern="PDF"/rights="read | write" pattern="PDF"/' /etc/ImageMagick-6/policy.xml
- name: Generate Thumbnail for Page 1
uses: jruipinto/ImageMagick-action@v1
with:
command: |
#sed -i 's/rights="none" pattern="PDF"/rights="read | write" pattern="PDF"/' /etc/ImageMagick-6/policy.xml
convert -density 700 -resize 10% -append -quality 98 -alpha remove rb-cv.pdf[0] rb-cv-thumbnail-p1.jpg
- name: Generate Thumbnail for Page 2
uses: jruipinto/ImageMagick-action@v1
Expand Down

0 comments on commit 2958909

Please sign in to comment.