pdftotext
Convert PDF files to plain text format. More information: https://www.xpdfreader.com/pdftotext-man.html.
-
Convert
filename.pdf
to plain text and print it tostdout
:
pdftotext {{filename.pdf}} -
-
Convert
filename.pdf
to plain text and save it asfilename.txt
:
pdftotext {{filename.pdf}}
-
Convert
filename.pdf
to plain text and preserve the layout:
pdftotext -layout {{filename.pdf}}
-
Convert
input.pdf
to plain text and save it asoutput.txt
:
pdftotext {{input.pdf}} {{output.txt}}
-
Convert pages 2, 3 and 4 of
input.pdf
to plain text and save them asoutput.txt
:
pdftotext -f {{2}} -l {{4}} {{input.pdf}} {{output.txt}}
License and Disclaimer
The content on this page is copyright © 2014—present the tldr-pages team and contributors.This page is used with permission under Creative Commons Attribution 4.0 International License.
While we do attempt to make sure content is accurate, there isn't a warranty of any kind.