
**Inheritance:**
java.lang.Object
```
public class PageInfo
```

Represents page setup data which is present in MPP file format and used for printing.
## Constructors

| Constructor | Description |
| --- | --- |
| [PageInfo()](#PageInfo--) | Initializes a new instance of the [PageInfo](../../com.aspose.tasks/pageinfo) class. |
## Methods

| Method | Description |
| --- | --- |
| [getFooter()](#getFooter--) | Gets an instance of the [HeaderFooterInfo](../../com.aspose.tasks/headerfooterinfo) class which represents a footer data. |
| [getHeader()](#getHeader--) | Gets the instance of the [HeaderFooterInfo](../../com.aspose.tasks/headerfooterinfo) class which represents a header data. |
| [getLegend()](#getLegend--) | Gets an instance of the [PageLegend](../../com.aspose.tasks/pagelegend) class which specifies rendering options of page legend. |
| [getMargins()](#getMargins--) | Gets an instance of the [PageMargins](../../com.aspose.tasks/pagemargins) class which specifies page margins. |
| [getName()](#getName--) | Gets the name of the view for which set-up data is used. |
| [getPageSettings()](#getPageSettings--) | Gets an instance of the `PageSettings`([getPageSettings()](../../com.aspose.tasks/pageinfo\#getPageSettings--)) class which specifies page printing settings. |
| [getPageViewSettings()](#getPageViewSettings--) | Gets an instance of the `PageViewSettings`([getPageViewSettings()](../../com.aspose.tasks/pageinfo\#getPageViewSettings--)) class which specifies page view printing settings. |
| [setFooter(HeaderFooterInfo value)](#setFooter-com.aspose.tasks.HeaderFooterInfo-) | Sets an instance of the [HeaderFooterInfo](../../com.aspose.tasks/headerfooterinfo) class which represents a footer data. |
| [setHeader(HeaderFooterInfo value)](#setHeader-com.aspose.tasks.HeaderFooterInfo-) | Sets the instance of the [HeaderFooterInfo](../../com.aspose.tasks/headerfooterinfo) class which represents a header data. |
| [setLegend(PageLegend value)](#setLegend-com.aspose.tasks.PageLegend-) | Sets an instance of the [PageLegend](../../com.aspose.tasks/pagelegend) class which specifies rendering options of page legend. |
### PageInfo() {#PageInfo--}
```
public PageInfo()
```


Initializes a new instance of the [PageInfo](../../com.aspose.tasks/pageinfo) class. Represents page setup data which is present in MPP file format and used for printing.

### getFooter() {#getFooter--}
```
public final HeaderFooterInfo getFooter()
```


Gets an instance of the [HeaderFooterInfo](../../com.aspose.tasks/headerfooterinfo) class which represents a footer data.

**Returns:**
[HeaderFooterInfo](../../com.aspose.tasks/headerfooterinfo) - an instance of the [HeaderFooterInfo](../../com.aspose.tasks/headerfooterinfo) class which represents a footer data.
### getHeader() {#getHeader--}
```
public final HeaderFooterInfo getHeader()
```


Gets the instance of the [HeaderFooterInfo](../../com.aspose.tasks/headerfooterinfo) class which represents a header data.

**Returns:**
[HeaderFooterInfo](../../com.aspose.tasks/headerfooterinfo) - the instance of the [HeaderFooterInfo](../../com.aspose.tasks/headerfooterinfo) class which represents a header data.
### getLegend() {#getLegend--}
```
public final PageLegend getLegend()
```


Gets an instance of the [PageLegend](../../com.aspose.tasks/pagelegend) class which specifies rendering options of page legend.

--------------------

Currently is applicable only to Gantt Chart views.

**Returns:**
[PageLegend](../../com.aspose.tasks/pagelegend) - an instance of the [PageLegend](../../com.aspose.tasks/pagelegend) class which specifies rendering options of page legend.
### getMargins() {#getMargins--}
```
public final PageMargins getMargins()
```


Gets an instance of the [PageMargins](../../com.aspose.tasks/pagemargins) class which specifies page margins.

**Returns:**
[PageMargins](../../com.aspose.tasks/pagemargins) - an instance of the [PageMargins](../../com.aspose.tasks/pagemargins) class which specifies page margins.
### getName() {#getName--}
```
public final String getName()
```


Gets the name of the view for which set-up data is used.

**Returns:**
java.lang.String - the name of the view for which set-up data is used.
### getPageSettings() {#getPageSettings--}
```
public final PageSettings getPageSettings()
```


Gets an instance of the `PageSettings`([getPageSettings()](../../com.aspose.tasks/pageinfo\#getPageSettings--)) class which specifies page printing settings.

**Returns:**
[PageSettings](../../com.aspose.tasks/pagesettings) - an instance of the `PageSettings`([getPageSettings()](../../com.aspose.tasks/pageinfo\#getPageSettings--)) class which specifies page printing settings.
### getPageViewSettings() {#getPageViewSettings--}
```
public final PageViewSettings getPageViewSettings()
```


Gets an instance of the `PageViewSettings`([getPageViewSettings()](../../com.aspose.tasks/pageinfo\#getPageViewSettings--)) class which specifies page view printing settings.

**Returns:**
[PageViewSettings](../../com.aspose.tasks/pageviewsettings) - an instance of the `PageViewSettings`([getPageViewSettings()](../../com.aspose.tasks/pageinfo\#getPageViewSettings--)) class which specifies page view printing settings.
### setFooter(HeaderFooterInfo value) {#setFooter-com.aspose.tasks.HeaderFooterInfo-}
```
public final void setFooter(HeaderFooterInfo value)
```


Sets an instance of the [HeaderFooterInfo](../../com.aspose.tasks/headerfooterinfo) class which represents a footer data.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | [HeaderFooterInfo](../../com.aspose.tasks/headerfooterinfo) | an instance of the [HeaderFooterInfo](../../com.aspose.tasks/headerfooterinfo) class which represents a footer data. |

### setHeader(HeaderFooterInfo value) {#setHeader-com.aspose.tasks.HeaderFooterInfo-}
```
public final void setHeader(HeaderFooterInfo value)
```


Sets the instance of the [HeaderFooterInfo](../../com.aspose.tasks/headerfooterinfo) class which represents a header data.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | [HeaderFooterInfo](../../com.aspose.tasks/headerfooterinfo) | the instance of the [HeaderFooterInfo](../../com.aspose.tasks/headerfooterinfo) class which represents a header data. |

### setLegend(PageLegend value) {#setLegend-com.aspose.tasks.PageLegend-}
```
public final void setLegend(PageLegend value)
```


Sets an instance of the [PageLegend](../../com.aspose.tasks/pagelegend) class which specifies rendering options of page legend.

--------------------

Currently is applicable only to Gantt Chart views.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | [PageLegend](../../com.aspose.tasks/pagelegend) | an instance of the [PageLegend](../../com.aspose.tasks/pagelegend) class which specifies rendering options of page legend. |

