You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
with "compress-pdf-v0.1-x86_64.AppImage" on ArchLinux, no files are displayed when you want select a pdf file.
workaround:
type directely the name of the pdf file...
The text was updated successfully, but these errors were encountered:
I have the same problem in FerenOS based on Ubuntu 20.04 with KDE. It is impossible to open any file. Even writing the name does not work.
I coded a shell script named "pdf-compress.sh" where I can drag and drop the files I want to compress. The output files are saved at the same path the original ones are, but at the end of the name "_compressed" is appended. Just drag and drop and press ENTER:
#!/bin/bash
printf "Enter the path of the PDF files: \n\n"
IFS= read -r file_list
IFS="'" read -ra files <<< "$file_list"
for ((i=0; i<${#files[@]}; i++)); do
file="${files[i]}"
if [ $(($i % 2)) -eq 0 ]; then
continue
fi
if [ ! -f "$file" ]; then
echo "File not found or not a regular file: $file"
continue
fi
LC_ALL=C.UTF-8 ghostscript -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook -dNOPAUSE -dQUIET -dBATCH -sOutputFile="$output" "$file"
if [ $? -eq 0 ]; then
printf "\nFile $file has been compressed and saved as $output\n"
else
printf "\nAn error occurred while compressing the file $file\n"
fi
done
with "compress-pdf-v0.1-x86_64.AppImage" on ArchLinux, no files are displayed when you want select a pdf file.
workaround:
type directely the name of the pdf file...
The text was updated successfully, but these errors were encountered: