0
I need a suitable command to convert pdf to tiff/g3 for use with hylafax/c2faxsend. The PDF is produced from a libreoffice plugin, but has relatively small fonts embedded.
My current command is
pdf2ps "$infile" - \
| pstops '1:0@0.95(1.05cm,1.485cm)' \
| gs -q -sDEVICE=tiffg3 -r"${resh}x${resv}" -sOutputFile="$outfile" \
-dBATCH -dNOPAUSE -c \
"<< /Install { { "$thresh" gt { 1 } { 0 } ifelse } settransfer } >> setpagedevice" -f -
I have infile
and outfile
set correctly, tried thresh=0.5
up to thresh=0.99
(no differences there), and tried different resolutions, like 204x98, 204x100dpi. However the fonts are (a little unexpectedly) only readable when starting from resolutions such as 300dpi: Often, the letters are rendered as disconnected entities or whole streaks are removed. For example, an E
might end up as something like [
Without being able to easily post an image, what could I do to avoid those problems other than increasing the resolution? (c2faxsend
converts the input to be 204x100 or so, and I don't think this can be influenced).
In short, I'm looking for a rasterisation command that is optimized for fonts readability at "normal" fax resolutions.