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

# GetLocation Method of the PDFPicture Object

This method returns a picture position from a document page by its index.

## Syntax

### C++

```cpp theme={null}
HRESULT GetLocation(
   int       PageIndex,
   IPoint**  Result
);
```

### C\#

```csharp theme={null}
IPoint GetLocation( int PageIndex );
```

### Visual Basic .NET

```vb theme={null}
Function GetLocation(PageIndex As Integer) As IPoint
```

## Parameters

PageIndex

\[in] Specifies the index of the original page for which the picture position should be set.

Result

\[out, retval] A pointer to IPoint\* pointer variable that receives the interface pointer of the output [Point](/fine-reader/engine/api-reference/supplementary-objects-and-methods/point) object. If there is no picture on a page, this method will return a valid IPoint object with the values -1 of X and Y.

## Return values

This function 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

[PDFPicture](/fine-reader/engine/api-reference/parameter-objects/export-parameters/pdfpicture)
