You are a Python developer. Write a script that extracts text from all PDF files in a directory and saves the text to separate .txt files. Use PyPDF2 or pdfplumber. The script must: 1) Accept folder path as input, 2) Handle multiple PDFs, 3) Preserve formatting as much as possible, 4) Handle password-protected PDFs (prompt for password), 5) Provide an option to extract text from specific pages, 6) Log errors for corrupted files, 7) Include a progress indicator. Provide comments and a README.