
## __init__ {#}

Initializes a new instance of the [`SVGDocument`](/svg/python-net/aspose.svg/svgdocument) class.



```python
def __init__(self):
    ...
```




## __init__ {#aspose.svg.Configuration}

Initializes a new instance of the [`SVGDocument`](/svg/python-net/aspose.svg/svgdocument) class.



```python
def __init__(self, configuration):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| configuration | [`Configuration`](/svg/python-net/aspose.svg/configuration) | The configuration. |


## __init__ {#str}

Initializes a new instance of the [`SVGDocument`](/svg/python-net/aspose.svg/svgdocument) class. Constructor works synchronously, it waits for loading of all the external resources (images, scripts, etc.).
To load document asynchronously use method [`Document.navigate`](/svg/python-net/aspose.svg.dom/document/navigate) or its overloads.
Or you can disable loading of some external resources by setting appropriate flags in [`IBrowsingContext.security`](/svg/python-net/aspose.svg.dom/ibrowsingcontext#security).



```python
def __init__(self, address):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| address | str | The document address. It will be combined with the current directory path to form an absolute URL. |


## __init__ {#aspose.svg.Url}

Initializes a new instance of the [`SVGDocument`](/svg/python-net/aspose.svg/svgdocument) class. Constructor works synchronously, it waits for loading of all the external resources (images, scripts, etc.).
To load document asynchronously use method [`Document.navigate`](/svg/python-net/aspose.svg.dom/document/navigate) or its overloads.
Or you can disable loading of some external resources by setting appropriate flags in [`IBrowsingContext.security`](/svg/python-net/aspose.svg.dom/ibrowsingcontext#security).



```python
def __init__(self, url):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| url | [`Url`](/svg/python-net/aspose.svg/url) | The document URL. |


## __init__ {#aspose.svg.net.RequestMessage}

Initializes a new instance of the [`SVGDocument`](/svg/python-net/aspose.svg/svgdocument) class. Constructor works synchronously, it waits for loading of all the external resources (images, scripts, etc.).
To load document asynchronously use method [`Document.navigate`](/svg/python-net/aspose.svg.dom/document/navigate) or its overloads.
Or you can disable loading of some external resources by setting appropriate flags in [`IBrowsingContext.security`](/svg/python-net/aspose.svg.dom/ibrowsingcontext#security).



```python
def __init__(self, request):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| request | aspose.svg.net.RequestMessage | The request. |


## __init__ {#str-aspose.svg.Configuration}

Initializes a new instance of the [`SVGDocument`](/svg/python-net/aspose.svg/svgdocument) class. Constructor works synchronously, it waits for loading of all the external resources (images, scripts, etc.).
To load document asynchronously use method [`Document.navigate`](/svg/python-net/aspose.svg.dom/document/navigate) or its overloads.
Or you can disable loading of some external resources by setting appropriate flags in [`IBrowsingContext.security`](/svg/python-net/aspose.svg.dom/ibrowsingcontext#security).



```python
def __init__(self, address, configuration):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| address | str | The document address. It will be combined with the current directory path to form an absolute URL. |
| configuration | [`Configuration`](/svg/python-net/aspose.svg/configuration) | The configuration. |


## __init__ {#aspose.svg.Url-aspose.svg.Configuration}

Initializes a new instance of the [`SVGDocument`](/svg/python-net/aspose.svg/svgdocument) class. Constructor works synchronously, it waits for loading of all the external resources (images, scripts, etc.).
To load document asynchronously use method [`Document.navigate`](/svg/python-net/aspose.svg.dom/document/navigate) or its overloads.
Or you can disable loading of some external resources by setting appropriate flags in [`IBrowsingContext.security`](/svg/python-net/aspose.svg.dom/ibrowsingcontext#security).



```python
def __init__(self, url, configuration):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| url | [`Url`](/svg/python-net/aspose.svg/url) | The document URL. |
| configuration | [`Configuration`](/svg/python-net/aspose.svg/configuration) | The configuration. |


## __init__ {#io.RawIOBase-str}

Initializes a new instance of the [`SVGDocument`](/svg/python-net/aspose.svg/svgdocument) class. Constructor works synchronously, it waits for loading of all the external resources (images, scripts, etc.).
To load document asynchronously use method [`Document.navigate`](/svg/python-net/aspose.svg.dom/document/navigate) or its overloads.
Or you can disable loading of some external resources by setting appropriate flags in [`IBrowsingContext.security`](/svg/python-net/aspose.svg.dom/ibrowsingcontext#security).
Document loading starts from the current position in the stream.



```python
def __init__(self, content, base_uri):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| content | io.RawIOBase | The document content. |
| base_uri | str | The base URI of the document. It will be combined with the current directory path to form an absolute URL. |
### Exceptions
| Exception | Description |
| :- | :- |
| ArgumentNullException | `baseUri` is `null`. |




## __init__ {#io.RawIOBase-aspose.svg.Url}

Initializes a new instance of the [`SVGDocument`](/svg/python-net/aspose.svg/svgdocument) class. Constructor works synchronously, it waits for loading of all the external resources (images, scripts, etc.).
To load document asynchronously use method [`Document.navigate`](/svg/python-net/aspose.svg.dom/document/navigate) or its overloads.
Or you can disable loading of some external resources by setting appropriate flags in [`IBrowsingContext.security`](/svg/python-net/aspose.svg.dom/ibrowsingcontext#security).
Document loading starts from the current position in the stream.



```python
def __init__(self, content, base_uri):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| content | io.RawIOBase | The document content. |
| base_uri | [`Url`](/svg/python-net/aspose.svg/url) | The base URI of the document. |
### Exceptions
| Exception | Description |
| :- | :- |
| ArgumentNullException | `baseUri` is `null`. |




## __init__ {#str-str}

Initializes a new instance of the [`SVGDocument`](/svg/python-net/aspose.svg/svgdocument) class. Constructor works synchronously, it waits for loading of all the external resources (images, scripts, etc.).
To load document asynchronously use method [`Document.navigate`](/svg/python-net/aspose.svg.dom/document/navigate) or its overloads.
Or you can disable loading of some external resources by setting appropriate flags in [`IBrowsingContext.security`](/svg/python-net/aspose.svg.dom/ibrowsingcontext#security).



```python
def __init__(self, content, base_uri):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| content | str | The document content. |
| base_uri | str | The base URI of the document. It will be combined with the current directory path to form an absolute URL. |
### Exceptions
| Exception | Description |
| :- | :- |
| ArgumentNullException | `baseUri` is `null`. |




## __init__ {#str-aspose.svg.Url}

Initializes a new instance of the [`SVGDocument`](/svg/python-net/aspose.svg/svgdocument) class. Constructor works synchronously, it waits for loading of all the external resources (images, scripts, etc.).
To load document asynchronously use method [`Document.navigate`](/svg/python-net/aspose.svg.dom/document/navigate) or its overloads.
Or you can disable loading of some external resources by setting appropriate flags in [`IBrowsingContext.security`](/svg/python-net/aspose.svg.dom/ibrowsingcontext#security).



```python
def __init__(self, content, base_uri):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| content | str | The document content. |
| base_uri | [`Url`](/svg/python-net/aspose.svg/url) | The base URI of the document. |
### Exceptions
| Exception | Description |
| :- | :- |
| ArgumentNullException | `baseUri` is `null`. |




## __init__ {#aspose.svg.net.RequestMessage-aspose.svg.Configuration}

Initializes a new instance of the [`SVGDocument`](/svg/python-net/aspose.svg/svgdocument) class. Constructor works synchronously, it waits for loading of all the external resources (images, scripts, etc.).
To load document asynchronously use method [`Document.navigate`](/svg/python-net/aspose.svg.dom/document/navigate) or its overloads.
Or you can disable loading of some external resources by setting appropriate flags in [`IBrowsingContext.security`](/svg/python-net/aspose.svg.dom/ibrowsingcontext#security).



```python
def __init__(self, request, configuration):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| request | aspose.svg.net.RequestMessage | The request. |
| configuration | [`Configuration`](/svg/python-net/aspose.svg/configuration) | The configuration. |


## __init__ {#io.RawIOBase-str-aspose.svg.Configuration}

Initializes a new instance of the [`SVGDocument`](/svg/python-net/aspose.svg/svgdocument) class. Constructor works synchronously, it waits for loading of all the external resources (images, scripts, etc.).
To load document asynchronously use method [`Document.navigate`](/svg/python-net/aspose.svg.dom/document/navigate) or its overloads.
Or you can disable loading of some external resources by setting appropriate flags in [`IBrowsingContext.security`](/svg/python-net/aspose.svg.dom/ibrowsingcontext#security).
Document loading starts from the current position in the stream.



```python
def __init__(self, content, base_uri, configuration):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| content | io.RawIOBase | The document content. |
| base_uri | str | The base URI of the document. It will be combined with the current directory path to form an absolute URL. |
| configuration | [`Configuration`](/svg/python-net/aspose.svg/configuration) | The configuration. |
### Exceptions
| Exception | Description |
| :- | :- |
| ArgumentNullException | `baseUri` is `null`. |




## __init__ {#io.RawIOBase-aspose.svg.Url-aspose.svg.Configuration}

Initializes a new instance of the [`SVGDocument`](/svg/python-net/aspose.svg/svgdocument) class. Constructor works synchronously, it waits for loading of all the external resources (images, scripts, etc.).
To load document asynchronously use method [`Document.navigate`](/svg/python-net/aspose.svg.dom/document/navigate) or its overloads.
Or you can disable loading of some external resources by setting appropriate flags in [`IBrowsingContext.security`](/svg/python-net/aspose.svg.dom/ibrowsingcontext#security).
Document loading starts from the current position in the stream.



```python
def __init__(self, content, base_uri, configuration):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| content | io.RawIOBase | The document content. |
| base_uri | [`Url`](/svg/python-net/aspose.svg/url) | The base URI of the document. |
| configuration | [`Configuration`](/svg/python-net/aspose.svg/configuration) | The configuration. |
### Exceptions
| Exception | Description |
| :- | :- |
| ArgumentNullException | `baseUri` is `null`. |




## __init__ {#str-str-aspose.svg.Configuration}

Initializes a new instance of the [`SVGDocument`](/svg/python-net/aspose.svg/svgdocument) class. Constructor works synchronously, it waits for loading of all the external resources (images, scripts, etc.).
To load document asynchronously use method [`Document.navigate`](/svg/python-net/aspose.svg.dom/document/navigate) or its overloads.
Or you can disable loading of some external resources by setting appropriate flags in [`IBrowsingContext.security`](/svg/python-net/aspose.svg.dom/ibrowsingcontext#security).



```python
def __init__(self, content, base_uri, configuration):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| content | str | The document content. |
| base_uri | str | The base URI of the document. It will be combined with the current directory path to form an absolute URL. |
| configuration | [`Configuration`](/svg/python-net/aspose.svg/configuration) | The configuration. |
### Exceptions
| Exception | Description |
| :- | :- |
| ArgumentNullException | `baseUri` is `null`. |




## __init__ {#str-aspose.svg.Url-aspose.svg.Configuration}

Initializes a new instance of the [`SVGDocument`](/svg/python-net/aspose.svg/svgdocument) class. Constructor works synchronously, it waits for loading of all the external resources (images, scripts, etc.).
To load document asynchronously use method [`Document.navigate`](/svg/python-net/aspose.svg.dom/document/navigate) or its overloads.
Or you can disable loading of some external resources by setting appropriate flags in [`IBrowsingContext.security`](/svg/python-net/aspose.svg.dom/ibrowsingcontext#security).



```python
def __init__(self, content, base_uri, configuration):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| content | str | The document content. |
| base_uri | [`Url`](/svg/python-net/aspose.svg/url) | The base URI of the document. |
| configuration | [`Configuration`](/svg/python-net/aspose.svg/configuration) | The configuration. |
### Exceptions
| Exception | Description |
| :- | :- |
| ArgumentNullException | `baseUri` is `null`. |





### See Also
* module [`aspose.svg`](../../)
* class [`SVGDocument`](/svg/python-net/aspose.svg/svgdocument)
