From 194fe2e0be5bd2e02342431000fabb995489e787 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Thu, 14 Nov 2024 20:18:34 +0100 Subject: add post-processing commands --- cookiebanners/script.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cookiebanners/script.sh') diff --git a/cookiebanners/script.sh b/cookiebanners/script.sh index 37e4567..eebf03a 100755 --- a/cookiebanners/script.sh +++ b/cookiebanners/script.sh @@ -58,3 +58,7 @@ jq -c '.[]' "$json_file" | while read -r item; do # * use plugin find ~/data -mindepth 1 -maxdepth 1 -name '*' -exec mv '{}' "$pos.pdf" ';' done + +# Post-processing to extract text strings and compress images: +#find -name '*.pdf' -type f -exec pdftotext -raw '{}' \; +#find -name '*.png' -type f -exec heif-enc -A '{}' \; -- cgit v1.2.3