Converti PDF scansionato in Word usando Java

Questo rapido tutorial spiega come convertire PDF scansionati in Word usando Java. Include all the details to set up the IDE, a list of steps, and sample code to convert scanned PDFs into a Word document using Java. Alcuni miglioramenti saranno suggeriti alla fine dell’articolo per creare un output personalizzato.

Passaggi per convertire PDF scansionato in Word usando Java

  1. Set up the environment to use Aspose.Total for Java to convert scanned PDFs to Word.
  2. Applica le licenze per i prodotti pertinenti
  3. Instantiate the OCR engine for text recognition in a PDF file.
  4. Upload the source PDF file and set the recognition parameters.
  5. Run the OCR engine and save the result of each page in a list.
  6. Crea un nuovo Word file usando la classe Document e collega un builder con esso
  7. Scroll through the recognized results and save each string on a separate page in the Word file.
  8. Save the resulting Word file to disk.

Questi passaggi descrivono come convertire un file PDF scansionato in Word usando Java. Creare il motore OCR, impostare il tipo di input su PDF, impostare la lingua di input e il flag dell’area di rilevamento, e applicare l’OCR sul PDF. Finally, create an empty Word file, add all the scanned results into it, and save the resulting Word file.

Codice per convertire PDF scansionati in Word usando Java

This code demonstrates the process to convert scanned PDFs into a Word document using Java. Per aumentare la precisione su immagini rumorose/sguainate, applica i filtri AutoSkew, AutoDewarping, AutoDenoising e Binarize. Light text on a dark background can be handled by enabling the setAutomaticColorInversion property.

In questo articolo, abbiamo convertito un PDF scansionato in un file Word. To create a QR code with a logo, refer to the article Create QR Code with Logo using Java.

 Italiano