Skip to content

Commit bea5507

Browse files
committed
switch to pdf version 1.5 for pdf filtering
1 parent 63a2aea commit bea5507

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/filterPdf.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ set -o errtrace # trace ERR through 'time command' and other functions
88
set -o nounset # set -u : exit the script if you try to use an uninitialized variable
99
set -o errexit # set -e : exit the script if any statement returns a non-true return value
1010

11-
echo "$(date +'%0Y-%0m-%0d %0R:%0S'): Welcome to the pdf filtering script."
11+
pdfVersion="1.5"
12+
echo "$(date +'%0Y-%0m-%0d %0R:%0S'): Welcome to the pdf filtering script using pdf $pdfVersion compliance."
1213

1314
currentDir="$(pwd)"
1415
echo "$(date +'%0Y-%0m-%0d %0R:%0S'): We are working in directory: '$currentDir'."
@@ -48,7 +49,7 @@ do
4849
-dCannotEmbedFontPolicy=/Error \
4950
-dColorConversionStrategy=/LeaveColorUnchanged \
5051
-dColorImageFilter=/FlateEncode \
51-
-dCompatibilityLevel=1.4 \
52+
-dCompatibilityLevel="$pdfVersion" \
5253
-dCompressFonts=true \
5354
-dCompressStreams=true \
5455
-dCreateJobTicket=false \

0 commit comments

Comments
 (0)