How to get readable text (smoothing text) after converting PDF to image?

I used ghostscript in a pdf document with text. The text looks like a black and white bitmap. How can I get an image with readable text?

-r96 -dTextAlphaBits=1 -sDEVICE=png16m 
+4
source share
1 answer

You can use a higher resolution for your output image, for example -r300 - dTextAlphaBits = 4 and -sDEVICE = pnggray

 -dTextAlphaBits=n -dGraphicsAlphaBits=n 

These options control the use of anti-aliasing anti-aliasing. Their use is highly recommended for obtaining high-quality rasterizations of input files. The subsampling block size n should be 4 for optimal output, but smaller values ​​can be used for faster rendering. Anti-aliasing is allowed separately for text and graphic content.

+6
source

Source: https://habr.com/ru/post/1488421/


All Articles