From c90a0fbe8800038c72764ca683a4260036984248 Mon Sep 17 00:00:00 2001 From: Mirek Kratochvil Date: Sun, 10 May 2020 22:44:46 +0200 Subject: [PATCH] add PDFA converting script --- pdfa.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 pdfa.sh diff --git a/pdfa.sh b/pdfa.sh new file mode 100755 index 0000000..1fa5934 --- /dev/null +++ b/pdfa.sh @@ -0,0 +1,15 @@ +#!/bin/bash +# Use this script to convert random PDFs to PDF/A (e.g. figures). +# Unfortunately, ghostscript can not retain the PDF/A metadata. In result, if +# you use this on the thesis, it _will_ become PDF/A compliant (and SIS will +# accept it), but won't contain the magic PDF/A "stamp" and will show only as +# normal PDF-1.4. :( +gs -dPDFA=1 \ + -dBATCH \ + -dNOPAUSE \ + -sProcessColorModel=DeviceCMYK \ + -sColorConversionStrategy=UseDeviceIndependentColor \ + -sDEVICE=pdfwrite \ + -dPDFACompatibilityPolicy=3 \ + -sOutputFile="pdfa-$1" \ + "$1"