mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-11-12 04:54:52 +03:00
a5fe31bc47
Co-authored-by: bl-ue <54780737+bl-ue@users.noreply.github.com> Co-authored-by: Starbeamrainbowlabs <sbrl@starbeamrainbowlabs.com>
620 B
620 B
pdftotext
Convert PDF files to plain text format.
- Convert
filename.pdf
to plain text and print it to standard output:
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}}