❔ Converting mails with a attached pdf to a txt file using OCR
What I'm creating is a software that when running it, it uses IMAP to access the specified email account and look for emails with a pdf attached to it, and convert that pdf to a txt file by using OCR to read the pdf text.
I was wondering if anyone knew how to solve this error:
Processing PDF: output\Utenlandsbetaling-FERJE - OCRDrift-25.10.23 (1).pdfOCR Process Error: Error in pixReadStream: Pdf reading is not supportedError in pixRead: pix not readError during processing.Extracted Text:Error: Failed to extract text from Utenlandsbetaling-FERJE - OCRDrift-25.10.23 (1).pdf
Processing PDF: output\Utenlandsbetaling-FERJE - OCRDrift-25.10.23 (1).pdfOCR Process Error: Error in pixReadStream: Pdf reading is not supportedError in pixRead: pix not readError during processing.Extracted Text:Error: Failed to extract text from Utenlandsbetaling-FERJE - OCRDrift-25.10.23 (1).pdf