Created
July 29, 2020 16:53
-
-
Save rob-p/9f52c9722fe65cae6946705babc7cddb to your computer and use it in GitHub Desktop.
Convert a PDF to PDF/A
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
pn=$1 | |
convert $1 $1.ps | |
gs -dPDFA -dBATCH -dNOPAUSE -dNOOUTERSAVE -dUseCIEColor -sProcessColorModel=DeviceCMYK -sDEVICE=pdfwrite -sPDFACompatibilityPolicy=1 -sOutputFile=$1.a.pdf $1.ps |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment