Tess4j - How to configure another language?

Hi friends,

In getting an error when trying to use another language.

Path

Variable connection

Error

The text you provided can be translated as follows:

"I’m having a problem with Tess4j in Node, trying to configure another language. I haven’t found any manual and I’m guessing the path forward is the one below.

  1. I went to GitHub and downloaded a ‘por.traineddata’ file.

  2. I’m connecting it via a variable, and I’m getting an ERROR."

“When I remove the variable, it works normally. But I need it to be in another language. Does anyone know this error?”

I attached the ‘por.traineddata’ file into data folder

Reading Image Based PDFs with Tika Parser.knwf