This short tutorial explains how to convert image into searchable PDF using C#. An example code is provided to convert an image into a readable PDF using C#, along with the programming steps and IDE settings. Some code improvements are shared at the end to create a custom output.
Passaggi per convertire JPG in PDF leggibile usando C#
- Set up the environment to use Aspose.OCR for .NET to read the text from the image.
- Apply the license to avoid a watermark in the output file.
- Instantiate the text recognition engine
- Add the source image to the list for scanning.
- Esegui il processo di riconoscimento sull’elenco delle immagini aggiunte
- Examine every result recognized from the scanned images
- Salva il risultato in un PDF in formato leggibile
I passaggi forniti spiegano il processo per trasformare un’immagine in PDF ricercabile usando C#. Instantiate the recognition engine, prepare a list of images to process, and start the engine. Iterate over each result, save it to a PDF file, and display the appropriate image to the user.
Code to convert an image into a readable PDF using C#
This code demonstrates how to convert JPG to a searchable PDF using C#. Se l’immagine di origine contiene testo diverso dalla lingua inglese, utilizza DocumentRecognitionSettings per specificare la lingua OCR insieme ad altri parametri. If the source images have low contrast or faded scans, enable the AutoContrast option to improve accuracy.
Questo articolo descrive il processo per estrarre testo da un’immagine e salvarlo in un file PDF. To remove noise from an image, consult the article Remove noise from image using C#.