How to convert djvu files into pdf files?

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

How to convert djvu files into pdf files? Wed Apr 08, 2020 11:13 am • by Ni€ls
Hello, i want to convert multiple *.djvu files to *.pdf with Hazel.

I would like to use the following programs:

djvu2pdf under Homebrew and Hazel

I have found the following shell script on the net:

Code: Select all
i="$1"
o="`basename $i .djvu`"
o="$o".pdf
cmd="ddjvu -format=pdf -quality=85 -verbose $i $o"
$cmd


with the shell script only one djvu file is converted. But there are several djvu files in the directory.
Where can the error be?


How does the shell script have to be adapted so that I can use it with Hasel?

The Hazel rule could look like this:

If all of the following conditions are met:
Extension is djvu
Kind is not Folder

Do the following to the matched file or folder:
Run shell script embedded script
Display notification with pattern: A djvu file was converted into the pdf file format!




Thanks for your help.

Niels
Ni€ls
 
Posts: 20
Joined: Thu May 16, 2019 10:50 am

Try going through the troubleshooting guide here: https://www.noodlesoft.com/kb/hazel-tro ... ing-guide/

Report back with the results.
Mr_Noodle
Site Admin
 
Posts: 11251
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support