Class: QgsHtmlRenderSettings¶
Encapsulates settings for rendering HTML content.
Added in version 4.4.
List of all members, including inherited members
Methods
Returns the settings encapsulated in a variantmap, for passing to the qgis_html_to_pdf utility. |
|
Returns the base URL used when resolving relative links. |
|
Returns the feature json (as a variant map). |
|
Returns |
|
Sets the base url to use when resolving relative links. |
|
Sets the feature json (as a variant map). |
|
Sets the user stylesheet CSS rules to use while rendering the HTML content. |
|
Returns the user stylesheet CSS rules used while rendering the HTML content. |
- class qgis.core.QgsHtmlRenderSettings[source]¶
Bases:
object- asMap(self) dict[str, Any][source]¶
Returns the settings encapsulated in a variantmap, for passing to the qgis_html_to_pdf utility.
- Return type:
dict[str, Any]
- baseUrl(self) QUrl[source]¶
Returns the base URL used when resolving relative links.
See also
- Return type:
QUrl
- featureJson(self) dict[str, Any][source]¶
Returns the feature json (as a variant map).
When the HTML has been loaded, an attempt will be made to call a “setFeature” function, passing this custom json object.
See also
- Return type:
dict[str, Any]
- setBaseUrl(self, url: QUrl)[source]¶
Sets the base
urlto use when resolving relative links.See also
- Parameters:
url (QUrl)
- setFeatureJson(self, json: dict[str | None, Any])[source]¶
Sets the feature
json(as a variant map).When the HTML has been loaded, an attempt will be made to call a “setFeature” function, passing this custom json object.
See also
- Parameters:
json (dict[str|None, Any])
- setUserStylesheet(self, stylesheet: str | None)[source]¶
Sets the user
stylesheetCSS rules to use while rendering the HTML content.These allow for overriding the styles specified within the HTML source.
See also
- Parameters:
stylesheet (str|None)