轻量标记语言的比较

转换 pdf 为 png 图片

bigclean posted @ 2010年6月02日 23:21 in software , 2711 阅读

写作论文时,时时需要画流程图。原来有用 pgf 画流程图,很方便而且生 成的 pdf 插入 tex 也很方便。但是论文必须要用邪恶的 word 排版,智能用 imagemagick 中的 convert 将 pdf 转换成 png 格式,但是转换后的图片很 模糊,插入 word 之中根本无法入眼,很影响文档的美观,遂只能作罢。后来换用 了 edraw,倒还凑合,但总是感觉不是太满意。

最近,阅读了 LiYanrui 的文档,才发觉是 convert 的参数设置问 题导致输出的图片模糊。

convert 命令有许多选项参数,本文用到的选项如下:

  • -trim:裁剪图像四周空白区域;
  • -transparent color:去除图像中指定的颜色;
  • -density geometry:设定图像的 DPI 值,通常为 96;
  • -antialias:让图像具有抗锯齿的效果;
  • -quality:图像压缩等级。

然后用如下的 convert 命令对 pdf 文件转换:

convert -quality 100 -antialias -density 96 -transparent white -trim test.pdf test.png

转换输出后的 png 图片非常好,插入 word 也很好了。

bruin login 说:
2022年8月26日 13:23

Secondary Education Core | Bellevue University 2021. Bellevue teachers vote to pause expansion of in-person learning 2021. bruin login Parents grow frustrated with Bellevue teachers meeting over. Parents grow frustrated with Bellevue teachers meeting over 2021.Secondary Education Core | Bellevue University 2021. Bellevue teachers vote to pause expansion of in-person learning 2021.Secondary Education Core | Bellevue University 2021. Bellevue teachers vote to pause expansion of in-person learning 2021.

AP Board Question Pa 说:
2022年9月22日 01:39

Department of School Education, Andhra Pradesh and Various Private & Government School Subject Experts and Teaching Staff have suggested the Practice Model Question Bank for All Languages & Subjects of the Course based on the SCERT & NCERT Syllabus.AP Board Question Paper Pdf Download Department of School Education, Andhra Pradesh and Various Private & Government School Subject Experts and Teaching Staff have suggested the Practice Model Question Bank for All Languages & Subjects of the Course based on the SCERT & NCERT Syllabus.


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter