
## ResourceHandler class

This class is responsible for handling resources. It provides methods that allow you to control what will be done with the [`Resource`](/html/python-net/aspose.html.saving/resource), as well as what reference will be written to the parent [`Resource`](/html/python-net/aspose.html.saving/resource).



The ResourceHandler type exposes the following members:

### Methods
| Method | Description |
| :- | :- |
| [handle_resource](/html/python-net/aspose.html.saving.resourcehandlers/resourcehandler/handle_resource/#aspose.html.saving.Resource-aspose.html.saving.ResourceHandlingContext) | This method is responsible for handling the resource. In it you can save the [`Resource`](/html/python-net/aspose.html.saving/resource) to the stream or embed it into the parent resource. |
| [handle_resource_reference](/html/python-net/aspose.html.saving.resourcehandlers/resourcehandler/handle_resource_reference/#aspose.html.saving.Resource-aspose.html.saving.ResourceHandlingContext) | This method is responsible for handling the resource reference. In this method, you can set what the reference to the resource being handled will look like. |



### See Also
* module [`aspose.html.saving.resourcehandlers`](..)
* class [`Resource`](/html/python-net/aspose.html.saving/resource)
