## XpsDocument::SetPagePrintTicket method


Links the *printTicket*  to the page indexed by *pageIndex*  in the document indexed by *documentIndex* .

```cpp
void Aspose::Page::XPS::XpsDocument::SetPagePrintTicket(int32_t documentIndex, int32_t pageIndex, System::SharedPtr<XpsMetadata::PagePrintTicket> printTicket)
```


| Parameter | Type | Description |
| --- | --- | --- |
| documentIndex | int32_t | Index of the document. |
| pageIndex | int32_t | Index of the page to link the print ticket to. |
| printTicket | System::SharedPtr\<XpsMetadata::PagePrintTicket\> | The print ticket to link. |

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [PagePrintTicket](../../../aspose.page.xps.xpsmetadata/pageprintticket/)
* Class [XpsDocument](../)
* Namespace [Aspose::Page::XPS](../../)
* Library [Aspose.Page for C++](../../../)
