Hello,
we updated our aspose version from 16.6.0 to 17.10.
Since the update we have a problem with the following code:
// search for text
Document calculatorDoc = new Document(new ByteArrayInputStream(out.toByteArray()));
TextFragmentAbsorber textAbsorber = new TextFragmentAbsorber(".*\n*");
textAbsorber.setTextSearchOptions(new TextSearchOptions(true));
calculatorDoc.getPages().accept(textAbsorber);
TextFragmentCollection textFragmentCollection = textAbsorber.getTextFragments();
textFragmentCollection.get_Item(1).getRectangle().getHeight();
We try to get the height of a single textfragment at one page. We know that there is just one fragment at the page .
Before the update it was possible to get the height of a text spanning over multiple lines.
After the update the TextAbsorber just finds the first line of the text.
How can we fix the problem?
Thanks,
Ina