add another converter for pdf to png using pdftocairo

This commit is contained in:
Uwe Steinmann 2024-08-19 20:03:12 +02:00
parent 165a5ef31e
commit 7a322702af

View File

@ -119,7 +119,12 @@ application/pdf
convert -density 100 -resize %wx '%f[0]' 'png:%o'
mutool draw -F png -w %w -q -N -o %o %f 1
mutool draw -F png -w %w -q -N -o '%o' '%f' 1
pdftocairo '%f' -png -singlefile -scale-to-x %w -scale-to-y -1 - > '%o'
pdftocairo needs to output to stdout because the output file name passed
to pdftocairo will be suffixed with png
application/postscript
convert -density 100 -resize %wx '%f[0]' 'png:%o'