handle_resource_reference method
handle_resource_reference
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.
Returns
A string that will be written to the parent resource and which represents a reference to the resource that is currently being handled.
def handle_resource_reference(self, resource, context):
...
Parameter | Type | Description |
---|---|---|
resource | Resource | The Resource which will be handled. |
context | ResourceHandlingContext | Resource handling context. |
Exceptions
Exception | Description |
---|---|
InvalidOperationException | Raised if Resource.output_url is and Resource.status is ResourceStatus.SAVED . Resource.output_url should be specified for saved resource because otherwise it is impossible to specify the correct reference in the resources referencing this one. |
See Also
- module
aspose.html.saving.resourcehandlers
- class
FileSystemResourceHandler
- class
Resource