HTMLDocument constructor
init
Initializes a new instance of the HTMLDocument class.
init
Initializes a new instance of the HTMLDocument class.
def __init__(self, configuration):
...
| Parameter | Type | Description |
|---|
| configuration | Configuration | The environment configuration. |
init
Initializes a new instance of the HTMLDocument class. Constructor works synchronously, it waits for loading of all the external resources (images, scripts, etc.).
To load document asynchronously use method Document.navigate or its overloads.
Or you can disable loading of some external resources by setting appropriate flags in IBrowsingContext.security.
def __init__(self, url):
...
| Parameter | Type | Description |
|---|
| url | Url | The document URL. |
init
Initializes a new instance of the HTMLDocument class. Constructor works synchronously, it waits for loading of all the external resources (images, scripts, etc.).
To load document asynchronously use method Document.navigate or its overloads.
Or you can disable loading of some external resources by setting appropriate flags in IBrowsingContext.security.
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
Initializes a new instance of the HTMLDocument class. Constructor works synchronously, it waits for loading of all the external resources (images, scripts, etc.).
To load document asynchronously use method Document.navigate or its overloads.
Or you can disable loading of some external resources by setting appropriate flags in IBrowsingContext.security.
def __init__(self, request):
...
| Parameter | Type | Description |
|---|
| request | aspose.html.net.RequestMessage | The request message. |
init
Initializes a new instance of the HTMLDocument class. Constructor works synchronously, it waits for loading of all the external resources (images, scripts, etc.).
To load document asynchronously use method Document.navigate or its overloads.
Or you can disable loading of some external resources by setting appropriate flags in IBrowsingContext.security.
def __init__(self, url, configuration):
...
| Parameter | Type | Description |
|---|
| url | Url | The document URL. |
| configuration | Configuration | The environment configuration. |
init
Initializes a new instance of the HTMLDocument class. Constructor works synchronously, it waits for loading of all the external resources (images, scripts, etc.).
To load document asynchronously use method Document.navigate or its overloads.
Or you can disable loading of some external resources by setting appropriate flags in IBrowsingContext.security.
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 | The environment configuration. |
init
Initializes a new instance of the HTMLDocument class. Constructor works synchronously, it waits for loading of all the external resources (images, scripts, etc.).
To load document asynchronously use method Document.navigate or its overloads.
Or you can disable loading of some external resources by setting appropriate flags in IBrowsingContext.security.
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
Initializes a new instance of the HTMLDocument class. Constructor works synchronously, it waits for loading of all the external resources (images, scripts, etc.).
To load document asynchronously use method Document.navigate or its overloads.
Or you can disable loading of some external resources by setting appropriate flags in IBrowsingContext.security.
def __init__(self, content, base_uri):
...
| Parameter | Type | Description |
|---|
| content | str | The document content. |
| base_uri | Url | The base URI of the document. |
Exceptions
| Exception | Description |
|---|
| ArgumentNullException | baseUri is null. |
init
Initializes a new instance of the HTMLDocument class. Constructor works synchronously, it waits for loading of all the external resources (images, scripts, etc.).
To load document asynchronously use method Document.navigate or its overloads.
Or you can disable loading of some external resources by setting appropriate flags in IBrowsingContext.security.
Document loading starts from the current position in the stream.
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
Initializes a new instance of the HTMLDocument class. Constructor works synchronously, it waits for loading of all the external resources (images, scripts, etc.).
To load document asynchronously use method Document.navigate or its overloads.
Or you can disable loading of some external resources by setting appropriate flags in IBrowsingContext.security.
Document loading starts from the current position in the stream.
def __init__(self, content, base_uri):
...
| Parameter | Type | Description |
|---|
| content | io.RawIOBase | The document content. |
| base_uri | Url | The base URI of the document. |
Exceptions
| Exception | Description |
|---|
| ArgumentNullException | baseUri is null. |
init
Initializes a new instance of the HTMLDocument class. Constructor works synchronously, it waits for loading of all the external resources (images, scripts, etc.).
To load document asynchronously use method Document.navigate or its overloads.
Or you can disable loading of some external resources by setting appropriate flags in IBrowsingContext.security.
def __init__(self, request, configuration):
...
| Parameter | Type | Description |
|---|
| request | aspose.html.net.RequestMessage | The request message. |
| configuration | Configuration | The environment configuration. |
init
Initializes a new instance of the HTMLDocument class. Constructor works synchronously, it waits for loading of all the external resources (images, scripts, etc.).
To load document asynchronously use method Document.navigate or its overloads.
Or you can disable loading of some external resources by setting appropriate flags in IBrowsingContext.security.
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 | The environment configuration. |
Exceptions
| Exception | Description |
|---|
| ArgumentNullException | baseUri is null. |
init
Initializes a new instance of the HTMLDocument class. Constructor works synchronously, it waits for loading of all the external resources (images, scripts, etc.).
To load document asynchronously use method Document.navigate or its overloads.
Or you can disable loading of some external resources by setting appropriate flags in IBrowsingContext.security.
def __init__(self, content, base_uri, configuration):
...
| Parameter | Type | Description |
|---|
| content | str | The document content. |
| base_uri | Url | The base URI of the document. |
| configuration | Configuration | The environment configuration. |
Exceptions
| Exception | Description |
|---|
| ArgumentNullException | baseUri is null. |
init
Initializes a new instance of the HTMLDocument class. Constructor works synchronously, it waits for loading of all the external resources (images, scripts, etc.).
To load document asynchronously use method Document.navigate or its overloads.
Or you can disable loading of some external resources by setting appropriate flags in IBrowsingContext.security.
Document loading starts from the current position in the stream.
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 | The environment configuration. |
Exceptions
| Exception | Description |
|---|
| ArgumentNullException | baseUri is null. |
init
Initializes a new instance of the HTMLDocument class. Constructor works synchronously, it waits for loading of all the external resources (images, scripts, etc.).
To load document asynchronously use method Document.navigate or its overloads.
Or you can disable loading of some external resources by setting appropriate flags in IBrowsingContext.security.
Document loading starts from the current position in the stream.
def __init__(self, content, base_uri, configuration):
...
| Parameter | Type | Description |
|---|
| content | io.RawIOBase | The document content. |
| base_uri | Url | The base URI of the document. |
| configuration | Configuration | The environment configuration. |
Exceptions
| Exception | Description |
|---|
| ArgumentNullException | baseUri is null. |
See Also