基于linux pdftotxt工具 进行pdf转txt
生活随笔
收集整理的這篇文章主要介紹了
基于linux pdftotxt工具 进行pdf转txt
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
linux pdftotxt工具介紹
1、centos安裝pdftotxt工具
@shell yum install poppler-utils2、Debian / Ubuntu安裝pdftotxt工具
sudo apt-get install poppler-utils3、pdftotext 使用語法
pdftotext {PDF-file} {text-file}例如:將a.pdf 轉化為 a.txt:
pdftotext a.pdf a.txt4、只轉其中某幾頁
只轉化前 3 頁和后 5 頁:
pdftotext -f 3 -l 5 a.pdf a.txt5、轉加密pdf
轉化加密過的pdf文件( owner password ):
pdftotext -opw 'password' a.pdf a.txt轉化加密過的pdf文件( user password ):
pdftotext -upw 'password' a.pdf a.txt總結
以上是生活随笔為你收集整理的基于linux pdftotxt工具 进行pdf转txt的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 2021年CCF CCSP全国赛 赛后感
- 下一篇: linux 图像处理软件,linux下的