Hi
Does Aspose.PDF.Text.CharInfo have an issue with LLX and URX sometimes having the same value?
Attached is a PDF file where the char "9" in the invoice number (125292) has its LLX and URX set to exactly the same value, wich also gives a wrong width. The width becomes zero.
for (int f = 0; f < segment.Characters.Count; f++)
{
CharInfo charInfo = segment.Characters[f + 1];
Console.WriteLine("LLX: {0} ", charInfo.Rectangle.LLX);
Console.WriteLine("LLY: {0} ", charInfo.Rectangle.LLY);
Console.WriteLine("URX: {0} ", charInfo.Rectangle.URX);
Console.WriteLine("URY: {0} ", charInfo.Rectangle.URY);
Console.WriteLine("Height: {0} ", charInfo.Rectangle.Height);
Console.WriteLine("Width: {0} ", charInfo.Rectangle.Width);
}
Console output
- LLX: 200,767
- LLY: 584,599
- URX: 200,767
- URY: 604,399
- Height: 19,800
- Width: 0