DynaPDF.Table.SetPDF
--------------------

Changes the PDF instance that is associated with the table.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [DynaPDF](component_DynaPDF.md) | [3.5](newinversion35.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "DynaPDF.Table.SetPDF"; Table; PDF ) 

**MBS**( **"DynaPDF.Table.SetPDF";** /\* Changes the PDF instance that is associated with the table. \*/  
**$Table**; /\* The identifier for the table. \*/   
**$PDF**) /\* The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Table | The identifier for the table. | $Table |
| PDF | The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). | $pdf |

### Result

Returns OK or error.

### Description

Changes the PDF instance that is associated with the table.   
The PDF instance must be changed if the table should be drawn into another PDF instance as the one for which the table was created.  
Note that extended color spaces and templates depend on the PDF instance in which these objects were created. If the table contains such objects then it is normally not possible to change the PDF instance.  
### See also

- [DynaPDF.New](DynaPDFNew.md)
- [DynaPDF.Table.GetPDF](DynaPDFTableGetPDF.md)
- [DynaPDF.Table.SetColor](DynaPDFTableSetColor.md)
- [DynaPDF.Table.SetFlags](DynaPDFTableSetFlags.md)
- [DynaPDF.Table.SetFont](DynaPDFTableSetFont.md)

This function checks for a license.

Created 18th August 2014 , last changed 18th August 2014

  
[DynaPDF.Table.SetGridWidth](DynaPDFTableSetGridWidth.md) - [DynaPDF.Table.SetRGBColor](DynaPDFTableSetRGBColor.md)

[HTML Version](DynaPDFTableSetPDF.shtml)