Convert PDF files to text format in Pdftotext--linux/unix

Source: Internet
Author: User

Installing Pdftotext to Redhat/rhel/fedora/centos/ubuntu

Install Pdftotext (CentOS) in a different Linux distribution version using the Poppler-utils package:

# yum Install Poppler-utils

or use the following command in Debian/ubuntu:

$ sudo apt-get install Poppler-utils
Pdftotext using syntax
Pdftotext {pdf-file} {Text-file}
How do I convert a PDF to text?

Convert Php-manual.pdf to Php-manual.txt:

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

Only the first 5 and next 10 pages are converted:

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

Convert encrypted PDF files (owner password):

$ Pdftotext-opw ' password ' php-manual.pdf php-manual.txt

Convert encrypted PDF files (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


Original: http://www.icultivator.com/p/8744.html

Convert PDF files to text format in Pdftotext--linux/unix

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.