> ## 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.

# ScreenToDocument Method of the ZoomViewer Object

> ScreenToDocument method of the ZoomViewer Object in ABBYY FineReader Engine Visual Components on Windows — This method converts screen coordinates of the specified point into coordinates on the document image.

This method converts screen coordinates of the specified point into coordinates on the document image.

## Syntax

### C++

```cpp theme={null}
HRESULT ScreenToDocument(
  int  ScreenX,
  int  ScreenY,
  int* DocumentX,
  int* DocumentY
);
```

### C\#

```csharp theme={null}
void ScreenToDocument(
  int     ScreenX,
  int     ScreenY,
  out int DocumentX,
  out int DocumentY
);
```

### Visual Basic .NET

```vb theme={null}
Sub ScreenToDocument(
  ScreenX As Integer, _
  ScreenY As Integer, _
  ByRef DocumentX As Integer, _
  ByRef DocumentY As Integer _
)
```

## Parameters

ScreenX

\[in] Specifies the horizontal coordinate of the point in screen coordinates.

ScreenY

\[in] Specifies the vertical coordinate of the point in screen coordinates.

DocumentX

\[out] Receives the horizontal coordinate of the point on the document image.

DocumentY

\[out] Receives the vertical coordinate of the point on the document image.

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

## See also

[ZoomViewer](/fine-reader/engine/visual-components-reference/zoomviewer)

[DocumentToScreen](/fine-reader/engine/visual-components-reference/zoomviewer/documenttoscreen-method)
