## PdfFileStamp::AddHeader(const System::SharedPtr\<FormattedText\>\&, float) method


Adds header to the page.

```cpp
void Aspose::Pdf::Facades::PdfFileStamp::AddHeader(const System::SharedPtr<FormattedText> &formattedText, float topMargin)
```


| Parameter | Type | Description |
| --- | --- | --- |
| formattedText | const System::SharedPtr\<FormattedText\>\& | [Text](../../../aspose.pdf.text/) for header and properties of the text. |
| topMargin | float | Margin on the top of page. |

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [FormattedText](../../formattedtext/)
* Class [PdfFileStamp](../)
* Namespace [Aspose::Pdf::Facades](../../)
* Library [Aspose.PDF for C++](../../../)
## PdfFileStamp::AddHeader(const System::SharedPtr\<FormattedText\>\&, float, float, float) method


Adds header to the pages of file.

```cpp
void Aspose::Pdf::Facades::PdfFileStamp::AddHeader(const System::SharedPtr<FormattedText> &formattedText, float topMargin, float leftMargin, float rightMargin)
```


| Parameter | Type | Description |
| --- | --- | --- |
| formattedText | const System::SharedPtr\<FormattedText\>\& | Formatted text object which contains page text and its properties. |
| topMargin | float | Margin on the top of the page. |
| leftMargin | float | Margin on the left of the page. |
| rightMargin | float | Margin on the right of the page. |

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [FormattedText](../../formattedtext/)
* Class [PdfFileStamp](../)
* Namespace [Aspose::Pdf::Facades](../../)
* Library [Aspose.PDF for C++](../../../)
## PdfFileStamp::AddHeader(const System::SharedPtr\<System::IO::Stream\>\&, float) method


Adds image as header on the pages.

```cpp
void Aspose::Pdf::Facades::PdfFileStamp::AddHeader(const System::SharedPtr<System::IO::Stream> &imageStream, float topMargin)
```


| Parameter | Type | Description |
| --- | --- | --- |
| imageStream | const System::SharedPtr\<System::IO::Stream\>\& | Stream of the image. |
| topMargin | float | Margin at top of the page. |

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Stream](../../../system.io/stream/)
* Class [PdfFileStamp](../)
* Namespace [Aspose::Pdf::Facades](../../)
* Library [Aspose.PDF for C++](../../../)
## PdfFileStamp::AddHeader(const System::SharedPtr\<System::IO::Stream\>\&, float, float, float) method


Adds image at the top of the page.

```cpp
void Aspose::Pdf::Facades::PdfFileStamp::AddHeader(const System::SharedPtr<System::IO::Stream> &inputStream, float topMargin, float leftMargin, float rightMargin)
```


| Parameter | Type | Description |
| --- | --- | --- |
| inputStream | const System::SharedPtr\<System::IO::Stream\>\& | Stream which contains image data. |
| topMargin | float | Margin at top of the page. |
| leftMargin | float | Margin at left side of the page. |
| rightMargin | float | Margin at right side of the page. |

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Stream](../../../system.io/stream/)
* Class [PdfFileStamp](../)
* Namespace [Aspose::Pdf::Facades](../../)
* Library [Aspose.PDF for C++](../../../)
## PdfFileStamp::AddHeader(const System::String\&, float) method


Adds image as header to the pages of the file.

```cpp
void Aspose::Pdf::Facades::PdfFileStamp::AddHeader(const System::String &imageFile, float topMargin)
```


| Parameter | Type | Description |
| --- | --- | --- |
| imageFile | const System::String\& | Path to the image file. |
| topMargin | float | Margin at top of the page. |

## See Also

* Class [String](../../../system/string/)
* Class [PdfFileStamp](../)
* Namespace [Aspose::Pdf::Facades](../../)
* Library [Aspose.PDF for C++](../../../)
## PdfFileStamp::AddHeader(const System::String\&, float, float, float) method


Adds image as header on the pages.

```cpp
void Aspose::Pdf::Facades::PdfFileStamp::AddHeader(const System::String &imageFile, float topMargin, float leftMargin, float rightMargin)
```


| Parameter | Type | Description |
| --- | --- | --- |
| imageFile | const System::String\& | Path to the image file. |
| topMargin | float | Margin at top of the page. |
| leftMargin | float | Margin at left side of the page. |
| rightMargin | float | Margin at right side of the page. |

## See Also

* Class [String](../../../system/string/)
* Class [PdfFileStamp](../)
* Namespace [Aspose::Pdf::Facades](../../)
* Library [Aspose.PDF for C++](../../../)
