
## select_attachment {#str}

Selects a specific attachment for rendering by its URL.



```python
def select_attachment(self, attachment_url):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| attachment_url | str | The URL of the attachment to select. |
### Exceptions
| Exception | Description |
| :- | :- |
| ArgumentNullException | Thrown when `attachment_url` is null. |
| ArgumentException | Thrown when `attachment_url` is empty. |





### See Also
* module [`aspose.html.rendering`](../../)
* class [`MhtmlRenderingOptions`](/html/python-net/aspose.html.rendering/mhtmlrenderingoptions)
