Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
ccjmne committed Oct 14, 2024
1 parent 0f9f30c commit 132e9b2
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:

- uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: qpdf
packages: exiftool qpdf
version: 1.0

- uses: actions/setup-node@v4
Expand All @@ -35,11 +35,13 @@ jobs:
- name: Verify manual hyphenation
run: |
mv dist/final.pdf ${{ env.resume-file }}
mv dist/final.pdf .
cp final.pdf ${{ env.resume-file }}
npx webpack --mode production --env HYPHENATE=yes --env OUTPUT=shy.pdf
# Strip EXIF metadata, set (auto-generated, undeletable) ID to fixed value
qpdf --object-streams=disable ${{ env.resume-file }} l
qpdf --object-streams=disable dist/shy.pdf r
exiftool -all= final.pdf dist/shy.pdf
qpdf --object-streams=disable final.pdf l
qpdf --object-streams=disable dist/shy.pdf r
sed -i "s|/ID \[[^]]*\]|/ID [<ID1><ID2>]|" l r
diff --brief l r
Expand Down

0 comments on commit 132e9b2

Please sign in to comment.