> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# CorrectSkew Method of the ImageDocument Object

This method corrects the image skew. Skew can be corrected only for angles not greater than 20 degrees.

<Warning>
  All blocks must be removed from page layout before this method call. Call the [ILayoutBlocks::DeleteAll](/fine-reader/engine/visual-components-reference/supplementary-objects/spellwordcollection/deleteall-method) method for [ILayout::Blocks](/fine-reader/engine/api-reference/layout-related-objects/layout#blocks) and [ILayout::BlackSeparators](/fine-reader/engine/api-reference/layout-related-objects/layout#blackseparators) , and [ILayout::VisualBlocks](/fine-reader/engine/api-reference/layout-related-objects/layout#visualblocks) (Win) collections of the corresponding layout.
</Warning>

## Syntax

### C++

```cpp theme={null}
HRESULT CorrectSkew();
```

### C\#

```csharp theme={null}
void CorrectSkew();
```

### Visual Basic .NET

```vb theme={null}
Sub CorrectSkew()
```

## Return values

This method has no specific return values. It returns the [standard return values of ABBYY FineReader Engine functions](/fine-reader/engine/api-reference/return-codes).

## Remarks

You can also correct image skew during preprocessing by using the [CorrectSkew](/fine-reader/engine/api-reference/parameter-objects/preprocessing-analysis-recognition-and-synthesis-parameters/pagepreprocessingparams#correctskew) property of the [PagePreprocessingParams](/fine-reader/engine/api-reference/parameter-objects/preprocessing-analysis-recognition-and-synthesis-parameters/pagepreprocessingparams) object.

## See also

[ImageDocument](/fine-reader/engine/api-reference/image-related-objects/imagedocument)

[PagePreprocessingParams](/fine-reader/engine/api-reference/parameter-objects/preprocessing-analysis-recognition-and-synthesis-parameters/pagepreprocessingparams)
