
## to_pdf(file_name) {#str}

Saves the shape to a pdf file.



```python
def to_pdf(self, file_name):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| file_name | str | the pdf file name with full path |


## to_pdf(stream) {#io.RawIOBase}

Creates the shape pdf and saves it to a stream.



```python
def to_pdf(self, stream):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| stream | io.RawIOBase | The output stream. |



### See Also
* module [aspose.diagram](../../)
* class [Shape](/diagram/python-net/aspose.diagram/shape)
