http://www.foolabs.com/xpdf/download.html
# tar zxvf xpdfbin-linux-3.04.tar.gz # cd xpdfbin-linux-3.04 # cp bin64/* /usr/local/bin/ # mkdir /usr/local/man/man1 # mkdir /usr/local/man/man5 #cd doc/ # cp *1 /usr/local/man/man1/ # cp *5 /usr/local/man/man5/ # cp sample-xpdfrc /usr/local/etc/xpdfrc # cd ../../ # tar xf xpdf-chinese-simplified.tar.gz # mkdir -p /usr/local/share/xpdf/chinese-simplified # cd xpdf-chinese-simplified # cp * /usr/local/share/xpdf/chinese-simplified/ -rf # cat add-to-xpdfrc >>/usr/local/etc/xpdfrc # cd .. # tar xf xpdf-chinese-traditional.tar.gz # mkdir -p /usr/local/share/xpdf/chinese-traditional/ # cd xpdf-chinese-traditional # cp * /usr/local/share/xpdf/chinese-traditional/ -rf # cat add-to-xpdfrc >>/usr/local/etc/xpdfrc # cd .. |
简单使用
pdftopng -f 1 -l 2 /var/www/sor.pdf desname 表示选择sor.pdf首页为1 -- 尾页为2的页面转成png图片。生成的图片名称会自动在desname加上-000001.png、-00002.png等。 |