Sarang PM
Sarang PM

Reputation: 398

How to use OCR module in a pdftron node js app?

I want to use OCR module in my node app, but I don't see full documentation on that. There are some code snippets available for the functionality but I am not sure how to add the module in a node app (I didn't find any npm packages for the OCR module). I am using the @pdftron/pdfnet-node in my app.

Upvotes: 1

Views: 552

Answers (1)

Shakthi Wijeratne
Shakthi Wijeratne

Reputation: 111

You will first need to download the OCR module from the PDFTron website.

Once you have downloaded and extracted the module to a directory where your program can access it, you will need to call the addResourceSearchPath() method to pass the location of the module to the SDK.

Please see the OCR sample here for reference.

Upvotes: 1

Related Questions