I'm trying to detect if text is rotated at all on a page (such as vertical text), but I don't see a way to do it. I checked for inverted width/height values, and rotation information on the SearchPage object but don't see any difference on rotated text. Is it possible?
- Code: Select all
var collections = new Dictionary<(int PageNumber, PdfPageBase PageBase), PdfTextFindCollection>();
foreach (var page in pages)
{
var collection = page.Value.FindAllText();
collections.Add((page.Key, page.Value), collection);
}
foreach (var collection in collections)
{
var pageNumber = collection.Key.Item1;
var pdfPage = collection.Key.Item2;
var pageCollection = collection.Value;
foreach (var find in pageCollection.Finds)
{
var text = find.MatchText;
// ??? find contains page rotation info, but not text rotation info
}
}