diff options
author | Jonas Smedegaard <dr@jones.dk> | 2024-11-14 20:18:34 +0100 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2024-11-14 20:18:34 +0100 |
commit | 194fe2e0be5bd2e02342431000fabb995489e787 (patch) | |
tree | ea0951330bcef3b1b45ab72b8852773f09e73c19 /cookiebanners/script.sh | |
parent | 1e18f5e7bc31bb62837efcce2bb3f85324f0bfda (diff) |
add post-processing commands
Diffstat (limited to 'cookiebanners/script.sh')
-rwxr-xr-x | cookiebanners/script.sh | 4 |
1 files changed, 4 insertions, 0 deletions
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 <https://addons.mozilla.org/da/firefox/addon/save-pdf/> 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 '{}' \; |