Note: this extracts the PDF's embedded text layer as-is — it doesn't run OCR, so scanned/image-only pages won't produce text. Line and paragraph breaks are reconstructed from the PDF's layout and may not always exactly match the original formatting; tables, columns, and complex layouts will come through as plain sequential text.