- Some pages are automatically oriented differently than other pages.
- Pages have text blocks that are oriented in several ways on the same page (horizontally, vertically, diagonally).
The large part of text on the pages is oriented differently from the other parts, which is causing them to be skewed after export.
Try to use PrepareImageMode Object with enabled CorrectSkew property and set CorrectSkewMode to either "CSM_CorrectSkewByHorizontalLines" or "CSM_CorrectSkewByHorizontalText". Here's a code snippet on C# for implementing it:
FREngine.PrepareImageMode PIM = _engine.CreatePrepareImageMode(); PIM.CorrectSkew = true; PIM.CorrectSkewMode = (int)FREngine.CorrectSkewModeEnum.CSM_CorrectSkewByHorizontalLines; //PIM.CorrectSkewMode = (int)FREngine.CorrectSkewModeEnum.CSM_CorrectSkewByHorizontalText; frDocument.AddImageFile(filePath, PIM, null);