Processed document results in the exported file to be skewed.

Symptoms

  • 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).

Cause

The large part of text on the pages is oriented differently from the other parts, which is causing them to be skewed after export.

Resolution

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);

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.

Recently viewed