About pdf to text
This tool extracts the text stored inside a PDF so you can copy it or save it as a .txt file.
Only works on real text
If the PDF was made by saving a document, the text is in the file and extraction works well. If it is a scan, the pages are pictures with no text inside. For those, use PDF OCR, which reads the letters from the image.
Expect some tidying
- Columns and tables may come out in reading order rather than layout.
- Hyphenated words at line ends can be split.
- Headers, footers and page numbers are included, so remove them if you do not need them.
A worked example
A report PDF of 30 pages is converted to text so you can paste the introduction into an email. Headers and page numbers appear in the output, so delete those lines. If the PDF is only scanned pictures, nothing comes out and you need OCR.
Cleaning the result
- Join lines that were broken at the end of each row.
- Remove repeating headers and footers.
- Check tables, which become plain lines of text.
