Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在带有文本的 PDF 文档上使用了 ghostscript。文本看起来像位的黑白图。如何获取带有可读文本的图像?
-r96 -dTextAlphaBits=1 -sDEVICE=png16m
您可以为输出图像使用更高的分辨率,例如-r300 set - dTextAlphaBits=4和-sDEVICE=pnggray
-dTextAlphaBits=n -dGraphicsAlphaBits=n
这些选项控制子样本抗锯齿的使用。强烈建议使用它们来生成输入文件的高质量光栅化。子采样框 n 的大小应为 4 以获得最佳输出,但较小的值可用于更快的渲染。针对文本和图形内容分别启用抗锯齿。