首页 > 系统服务 > 详细

pdftotext —— Linux/Unix中将PDF文件转化为Text文本格式的利器

时间:2015-02-09 12:46:55      阅读:1540      评论:0      收藏:0      [点我收藏+]

安装 pdftotext 到 RedHat / RHEL / Fedora / CentOS / Ubuntu

在不同的Linux分发版本中使用poppler-utils包安装pdftotext(CentOS):

# yum install poppler-utils

或者在Debian / Ubuntu中使用如下指令:

$ sudo apt-get install poppler-utils

pdftotext 使用语法

pdftotext {PDF-file} {text-file}

如何将pdf转化为text?

将php-manual.pdf 转化为 php-manual.txt:

$ pdftotext php-manual.pdf php-manual.txt

只转化前 5 页和后 10 页:

$ pdftotext -f 5 -l 10 php-manual.pdf php-manual.txt

转化加密过的pdf文件( owner password ):

$ pdftotext -opw ‘password‘ php-manual.pdf php-manual.txt

转化加密过的pdf文件( user password ):

$ pdftotext -upw ‘password‘ php-manual.pdf php-manual.txt

Sets the end-of-line convention to use for text output. You can set it to unix, dos or mac. For UNIX / Linux oses, enter:

$ pdftotext -eol unix php-manual.pdf php-manual.txt


原作: http://www.icultivator.com/p/8744.html

pdftotext —— Linux/Unix中将PDF文件转化为Text文本格式的利器

原文:http://www.cnblogs.com/appsolution/p/4281161.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!