As we are upgrading GDPicture from 11.2.0.7 to 14.0.42, we have encountered an issue with GetOrientation.
Using provided sample code, we have got pages that got rotated where they should not be.
We used you sample code of splitting TIF to get the problematic page and attached it here.
https://www.gdpicture.com/guides/gdpicture/Ho ... 20OCR.html
Code: Select all
using (GdPictureOCR gdpictureOCR = new GdPictureOCR())
{
gdpictureOCR.ResourceFolder = DictionaryPath;
gdpictureOCR.AddLanguage(_OCRLanguage);
status = gdpictureOCR.SetImage(m_ImageID);
int intPageRotation = gdpictureOCR.GetOrientation();
if (intPageRotation != 0)
{
status = m_GdPictureImaging.RotateAngle(m_ImageID, 360 - intPageRotation);
}
}
Tri