From 6559aeeed3d2af341fd791ba0e48e2fc7859ea94 Mon Sep 17 00:00:00 2001 From: RedAnt333 Date: Tue, 5 Dec 2017 21:12:55 +0100 Subject: [PATCH 1/2] pdftotext: add page --- pages/common/pdftotext.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 pages/common/pdftotext.md diff --git a/pages/common/pdftotext.md b/pages/common/pdftotext.md new file mode 100644 index 000000000..a93c51d56 --- /dev/null +++ b/pages/common/pdftotext.md @@ -0,0 +1,19 @@ +# 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 as filename.txt: + +`pdftotext {{filename.pdf}}` + +- Convert input.pdf to plain text and save it as output.txt: + +`pdftotext {{input.pdf}} {{output.txt}}` + +- 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.txt}}` From 9e55e9f452fa4b8ba2d7ef0dd3347ab6f178831d Mon Sep 17 00:00:00 2001 From: Agniva De Sarker Date: Thu, 7 Dec 2017 11:59:30 +0530 Subject: [PATCH 2/2] put page nos. inside tokens --- pages/common/pdftotext.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/common/pdftotext.md b/pages/common/pdftotext.md index a93c51d56..6bf3b1eb6 100644 --- a/pages/common/pdftotext.md +++ b/pages/common/pdftotext.md @@ -16,4 +16,4 @@ - 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.txt}}` +`pdftotext -f {{2}} -l {{4}} {{input.pdf}} {{output.txt}}`