Load a PDF, choose the pages, and click Extract text to pull out the text layer with pdf.js. Line breaks are rebuilt from the position of each text fragment, and optional separators such as ----- Page 3 ----- mark where each page starts. Copy the result or download it as a .txt file.
This reads text that is actually stored in the PDF. Scanned documents are just images of pages and come back empty, since there is no OCR here. Multi-column layouts and tables are read in the order the PDF stores them, which is not always the visual order.
All extraction happens locally in your browser. If the PDF needs a password to open, enter it when asked.