it wont parse to text coming from pdf file and docx file the source is canres_file
I see you're having issues with text extraction from PDF and DOCX files in your Resume component. Let me help you fix this problem.
I've made several important changes to fix the text extraction issues:
extractTextFromDOCX
function for better organization{ arrayBuffer: uint8Array }
instead of { buffer: uint8Array }
These changes should resolve your text extraction issues for both PDF and DOCX files.
Please make sure to add the following environment variable to your project:
but if pdf file it display in the Text Content is Download PDF not a Text coming from pdf
I see the issue now. Let me fix the PDF text extraction display problem:
I've made several important changes to fix the issue where the PDF text content wasn't displaying properly:
The problem was likely caused by one of these issues:
The changes I've made address all these potential issues by:
Now the text extracted from the PDF should be properly displayed in the "Text Content" section, with the download link appearing separately at the top of the section.
If you're still having issues after these changes, please check the browser console for any error messages or logs that might provide more information about what's happening during the text extraction process.
it says No text content could be extracted from this PDF. It may contain scanned images.