Read PDF With OCR: BitMiracle.Docotic.Pdf.UnexpectedStructureException: Unexpected PDF structure. Usually, it happens when the PDF document is malformed but may also indicate a bug in Docotic.Pdf library

Hello everyone,

I am facing an issue while retrieving the data from the PDF using the UiPath document OCR.
The pdf’s are getting extracted but at the end of the automation the error comes and stops the automation to get completed.

Error description: Read PDF With OCR: BitMiracle.Docotic.Pdf.UnexpectedStructureException: Unexpected PDF structure. Usually, it happens when the PDF document is malformed but may also indicate a bug in Docotic.Pdf library.

Please help me with this.

Rergards
[Main.xaml|attachment]
(upload://nomq1Tk2QKzPTEDNYl3C8pX8ICP.xaml) (23.2 KB)

Pranav Sundar

Hi @Pranav_Sundar ,

Ensure you are using the latest version of OCR Package.

Some fonts used in the PDF may be causing issues with OCR recognition. Try re-saving the PDF with a different font or using a font-agnostic OCR engine.

If none of the above solutions work, reach out to UiPath support for further assistance or bug reporting.

Thanks,