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

# SetLocation Method of the PDFPicture Object

This method sets a picture position on a document page.

## Syntax

### C++

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

### C\#

```csharp theme={null}
void SetLocation(
  IPoint      Offset,
  int         PageIndex
);
```

### Visual Basic .NET

```vb theme={null}
Sub SetLocation( _
  Offset As IPoint,
  PageIndex As Integer _
)
```

## Parameters

Offset

\[in] Refers to the [Point](/fine-reader/engine/api-reference/supplementary-objects-and-methods/point) object which describes the location of a point on an image.

PageIndex

\[in] Specifies the index of the original page for which the picture position should be set. By default, this variable is set to -1, which means that the picture position will be set on all document pages. If you need to specify the pictures positions on certain pages, you should list the indexes of the desired pages, for example, (1, 3, 6, 7).

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