mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-09 04:56:06 +00:00
add converter for postscript
This commit is contained in:
parent
58fd8877fb
commit
a94eccb6cf
|
@ -100,6 +100,9 @@ application/pdf
|
||||||
|
|
||||||
mutool draw -F png -w %w -q -N -o %o %f 1
|
mutool draw -F png -w %w -q -N -o %o %f 1
|
||||||
|
|
||||||
|
application/postscript
|
||||||
|
convert -density 100 -resize %wx '%f[0]' 'png:%o'
|
||||||
|
|
||||||
text/plain
|
text/plain
|
||||||
a2ps -1 -a1 -R -B -o - '%f' | gs -dBATCH -dNOPAUSE -sDEVICE=png16m -dFirstPage=1 -dLastPage=1 -dPDFFitPage -r72x72 -sOutputFile=- -q - | convert -resize %wx png:- 'png:%o'
|
a2ps -1 -a1 -R -B -o - '%f' | gs -dBATCH -dNOPAUSE -sDEVICE=png16m -dFirstPage=1 -dLastPage=1 -dPDFFitPage -r72x72 -sOutputFile=- -q - | convert -resize %wx png:- 'png:%o'
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user