SvgExternalResources
Specifies which external resources an SVG document may load while it is rendered.
External resources are the targets of image and use references that point outside the SVG document itself. Embedded data: URIs and references to elements inside the same document are always allowed.
from nutrient_sdk import SvgExternalResourcesValues
| Name | Value | Description |
|---|---|---|
SvgExternalResources.NONE | 0 | No external resources are loaded. Only embedded data: URIs and references to elements inside the same document are resolved. |
SvgExternalResources.LOCAL_FILES | 1 | Files on the local file system can be loaded, for example images stored next to the SVG file. Network locations are not loaded. |
SvgExternalResources.ALL | 2 | Local files and remote HTTP or HTTPS locations can be loaded. Redirects are not followed. Only use this value with SVG documents from a trusted source. |
Usage Example
from nutrient_sdk import SvgExternalResources
# Access enum valuesvalue = SvgExternalResources.NONEprint(f"Value: {value}") # Output: Value: SvgExternalResources.NONEprint(f"Integer value: {value.value}") # Output: Integer value: 0