Eri…..
Eri…..
CC#
Created by Eri….. on 11/1/2023 in #help
❔ 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).pdf
OCR Process Error: Error in pixReadStream: Pdf reading is not supported
Error in pixRead: pix not read
Error 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).pdf
OCR Process Error: Error in pixReadStream: Pdf reading is not supported
Error in pixRead: pix not read
Error during processing.

Extracted Text:
Error: Failed to extract text from Utenlandsbetaling-FERJE - OCRDrift-25.10.23 (1).pdf
This is my C# code in a replit because it was too big to post here (Its also attached in a text file: https://replit.com/@ersor29/CSharp#main.cs
6 replies