From 3f9a5b863598f84200e32f9b868b6bb335c119af Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Thu, 9 Dec 2021 10:09:03 +0100 Subject: [PATCH] add conversion with mutool --- doc/README.Converters | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doc/README.Converters b/doc/README.Converters index 96ef71bbe..5b4887966 100644 --- a/doc/README.Converters +++ b/doc/README.Converters @@ -9,6 +9,8 @@ application/csv application/pdf pdftotext -nopgbrk %s - | sed -e 's/ [a-zA-Z0-9.]\{1\} / /g' -e 's/[0-9.]//g' + mutool draw -F txt -q -N -o - %s + application/vnd.openxmlformats-officedocument.wordprocessingml.document docx2txt '%s' - @@ -85,6 +87,10 @@ image/png application/pdf gs -dBATCH -dNOPAUSE -sDEVICE=png16m -dPDFFitPage -r72x72 -sOutputFile=- -dFirstPage=1 -dLastPage=1 -q '%f' | convert -resize %wx png:- '%o' + convert -density 100 -resize %wx '%f[0]' 'png:%o' + + mutool draw -F png -w %w -q -N -o %o %f 1 + 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'