Text-to-speech conversion from PDF using JavaScript

The JavaScript PDF text-to-speech feature uses the text extraction API to extract text from a PDF document. Then, the text is passed to the screen reader for speech synthesis. The raw text content of PDFs is also accessible to screen readers out of the box.