CmdID

CmdID / Commands

pdftotext

Convert PDF files to plain text format. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Convert filename.pdf to plain text and print it to stdout

pdftotext filename.pdf -Identify

Convert filename.pdf to plain text and save it as filename.txt

pdftotext filename.pdfIdentify

Convert filename.pdf to plain text and preserve the layout

pdftotext -layout filename.pdfIdentify

Convert input.pdf to plain text and save it as output.txt

pdftotext input.pdf output.txtIdentify

Convert pages 2, 3, and 4 of input.pdf to plain text and save them as output.txt

pdftotext -f 2 -l 4 input.pdf output.txtIdentify