Any help would be appreciated.
const txt = await PDFNet.TextExtractor.create();
const rect = await PDFNet.Rect.init(99.98378847999993, 1555.54, 180,
1574.7627664);
await txt.begin(firstPage , rect); // Read the page.
//Extract words one by one.
let line = await txt.getFirstLine();
for (; (await line.isValid()); line = (await line.getNextLine()))
{
for (let word = await line.getFirstWord(); (await word.isValid()); word = (await word.getNextWord()))
{
const text = await word.getString();
console.log(text);
}
}