### Get Page Setup Configuration - ImageRenderingOptions Source: https://reference.aspose.com/html/python-net/aspose.html.rendering.image/imagerenderingoptions/page_setup The page_setup property of the ImageRenderingOptions class in Aspose.HTML for Python via .NET allows you to get a PageSetup object. This object is used to configure the output page setup for image rendering. ```Python from aspose.html.rendering.image import ImageRenderingOptions # Assuming 'options' is an instance of ImageRenderingOptions page_setup_config = options.page_setup ``` -------------------------------- ### Configure Output Page Setup Source: https://reference.aspose.com/html/python-net/aspose.html.saving/docsaveoptions Gets a page setup object used for configuring the output page settings. This includes properties like page size, margins, and orientation. ```Python page_setup = doc_save_options.page_setup ``` -------------------------------- ### Get Page Setup Configuration Source: https://reference.aspose.com/html/python-net/aspose.html.rendering.doc/docrenderingoptions/page_setup Retrieves the page setup object used for configuring the output page-set. This property is part of the DocRenderingOptions class for rendering documents. ```Python from aspose.html.rendering.doc import DocRenderingOptions # Assuming 'options' is an instance of DocRenderingOptions page_setup_config = options.page_setup ``` -------------------------------- ### Get Start Index - OrderedListSyntaxNode Source: https://reference.aspose.com/html/python-net/aspose.html.toolkit.markdown.syntax/orderedlistsyntaxnode/get_start Retrieves the starting index of the ordered list syntax node. This method is part of the OrderedListSyntaxNode class and is used to define the interface for getting the start index. ```Python def get_start(self): ... ``` -------------------------------- ### Initialize XpsDevice with Stream, Resolution, and Rendering Options Source: https://reference.aspose.com/html/python-net/aspose.html.rendering.xps/xpsdevice/__init__ This example demonstrates initializing XpsDevice with a stream, a specific resolution, and XpsRenderingOptions. This provides flexibility in handling output and controlling rendering quality. ```Python with open("output.xps", "wb") as stream: xps_device = XpsDevice(stream, 300, XpsRenderingOptions()) ``` -------------------------------- ### Get TextSpan Start Index Source: https://reference.aspose.com/html/python-net/aspose.html.toolkit.markdown.syntax.text/textspan/start This code snippet demonstrates how to retrieve the starting index of a TextSpan object using the 'start' property in Python. The 'start' property returns the starting index of the text span. ```Python from aspose.html.toolkit.markdown.syntax.text import TextSpan # Assuming 'text_span' is an instance of TextSpan # For example: # text_span = TextSpan.create("sample text", 0, 5) # Get the start index start_index = text_span.start ``` -------------------------------- ### Initialize New Page with Size (Python) Source: https://reference.aspose.com/html/python-net/aspose.html.rendering.xps/xpsdevice/begin_page Initializes a new page with the specified size using the `begin_page` method of the `XpsDevice` class. This method is crucial for setting up the dimensions of a page before rendering content onto it. ```Python def begin_page(self, size): ... ``` -------------------------------- ### Get TextLine Start Position in Python Source: https://reference.aspose.com/html/python-net/aspose.html.toolkit.markdown.syntax.text/textline/start This snippet demonstrates how to access the 'start' property of a TextLine object in Python. The 'start' property returns the starting position of the text line. ```Python from aspose.html.toolkit.markdown.syntax.text import TextLine # Assuming 'text_line' is an instance of TextLine # text_line = TextLine(...) start_position = text_line.start ``` -------------------------------- ### Start New Page with XpsDevice in Python Source: https://reference.aspose.com/html/python-net/aspose.html.rendering.xps/xpsdevice/begin_page The `begin_page` method is used to start a new page in the XPS document. It prepares the device for rendering content on a fresh page. This is a fundamental step in the XPS rendering workflow. ```Python def begin_page(self, page_setup: PageSetup) -> None: """Starts a new page. Args: page_setup: The page setup configuration for the new page. """ pass ``` -------------------------------- ### Start Rendering with ImageDevice Source: https://reference.aspose.com/html/python-net/aspose.html.rendering.image/imagedevice/begin_document The `begin_document` method is called to start the rendering process for an HTML document to an image. It prepares the output file and sets up the drawing context. This is typically the first step before adding pages or drawing content. ```Python from aspose.html.saving import ImageDevice from aspose.html.rendering.image import ImageRenderingOptions, ImageFormat # Create an instance of ImageDevice with rendering options options = ImageRenderingOptions() options.image_format = ImageFormat.PNG image_device = ImageDevice("output.png", options) # Begin the document rendering process image_device.begin_document() # ... (further rendering operations like begin_page, draw_image, end_page, end_document) ... # End the document rendering process image_device.end_document() ``` -------------------------------- ### Get TextAreaElement Type Source: https://reference.aspose.com/html/python-net/aspose.html.forms/textareaelement/type This example demonstrates how to get the type of a form control using the type property of the TextAreaElement class. ```Python from aspose.html.forms import TextAreaElement # Assuming 'textarea_element' is an instance of TextAreaElement control_type = textarea_element.type ``` -------------------------------- ### Start XPS Document with XpsDevice Source: https://reference.aspose.com/html/python-net/aspose.html.rendering.xps/xpsdevice/begin_document The `begin_document` method is part of the `XpsDevice` class and is used to initiate the creation of an XPS document. This is a fundamental step before rendering any content to an XPS file. ```Python def begin_document(self): """Starts the XPS document. """ pass ``` -------------------------------- ### Get Page Setup Configuration Source: https://reference.aspose.com/html/python-net/aspose.html.rendering.pdf/pdfrenderingoptions/page_setup Retrieves the page setup object used for configuring the output page-set in PDF rendering. This property is part of the `PdfRenderingOptions` class. ```Python from aspose.html.rendering.pdf import PdfRenderingOptions # Assuming 'options' is an instance of PdfRenderingOptions page_setup_config = options.page_setup ``` -------------------------------- ### Initialize XpsDevice with File Path, Resolution, and Rendering Options Source: https://reference.aspose.com/html/python-net/aspose.html.rendering.xps/xpsdevice/__init__ This example shows initializing XpsDevice with a file path, specifying the resolution (dots per inch) for rendering, and providing XpsRenderingOptions. This allows for finer control over the output quality. ```Python xps_device = XpsDevice("output.xps", 300, XpsRenderingOptions()) ``` -------------------------------- ### Initialize XpsDevice with File Path Source: https://reference.aspose.com/html/python-net/aspose.html.rendering.xps/xpsdevice/__init__ This snippet shows the basic initialization of XpsDevice by providing only the output file path. Default rendering options will be used. ```Python xps_device = XpsDevice("output.xps") ``` -------------------------------- ### Get tag_name of SVGGeometryElement Source: https://reference.aspose.com/html/python-net/aspose.html.dom.svg/svggeometryelement/tag_name This example demonstrates how to retrieve the tag name of an SVGGeometryElement. It involves creating an SVG document, getting an SVG element, and then accessing its 'tag_name' property. ```Python import aspose.html from aspose.html.dom.svg import SVGGeometryElement def get_svg_geometry_tag_name(svg_content): document = aspose.html.HTMLDocument(svg_content) svg_element = document.get_elements_by_tag_name("svg").item(0) if svg_element: geometry_element = svg_element.first_element_child if isinstance(geometry_element, SVGGeometryElement): tag_name = geometry_element.tag_name print(f"The tag name of the SVG geometry element is: {tag_name}") else: print("The first child element is not an SVGGeometryElement.") else: print("No SVG element found in the document.") # Example usage: svg_data = '' get_svg_geometry_tag_name(svg_data) ``` -------------------------------- ### Initialize Document Rendering with DocDevice Source: https://reference.aspose.com/html/python-net/aspose.html.rendering.doc/docdevice/begin_document The `begin_document` method is used to initiate the rendering process for a document using the `DocDevice`. This method is crucial for setting up the document context before any content is rendered. It typically takes a document title and options as parameters. ```Python def begin_document(self, document_title: str, options: DocRenderingOptions = None) -> None: """Starts the document rendering. Args: document_title: The title of the document. options: The rendering options. """ pass ``` -------------------------------- ### Get Page Setup - Python Source: https://reference.aspose.com/html/python-net/aspose.html.saving/imagesaveoptions/page_setup Retrieves the page setup object for configuring output page settings. This property is essential for controlling the layout and appearance of saved documents. ```Python Copy@property def page_setup(self): ... ``` -------------------------------- ### Initialize New Page with Size - Python Source: https://reference.aspose.com/html/python-net/aspose.html.rendering.image/imagedevice/begin_page Initializes a new page for rendering using the specified size. This method is essential for controlling the dimensions of each page in the output image. ```Python def begin_page(self, size): ... ``` -------------------------------- ### Get Page Setup Configuration (Python) Source: https://reference.aspose.com/html/python-net/aspose.html.saving/xpssaveoptions/page_setup Retrieves the page setup configuration for HTML rendering. This property is part of the Aspose.HTML library and is used to access or modify page-related settings. ```Python copy @property def page_setup(self): ... ``` -------------------------------- ### Start PDF Document with PdfDevice in Python Source: https://reference.aspose.com/html/python-net/aspose.html.rendering.pdf/pdfdevice/begin_document The `begin_document` method is called to start the creation of a PDF document using the `PdfDevice`. This is a fundamental step before rendering any content to the PDF. ```Python from aspose.html.rendering.pdf import PdfDevice # Assuming 'output_path' is defined and 'options' is a PdfRenderingOptions object with PdfDevice(output_path, options) as pdf_device: pdf_device.begin_document() ``` -------------------------------- ### Initialize XpsDevice with File Path and Rendering Options Source: https://reference.aspose.com/html/python-net/aspose.html.rendering.xps/xpsdevice/__init__ This snippet demonstrates how to initialize the XpsDevice class by providing a file path for the XPS output and an instance of XpsRenderingOptions. This is useful for controlling the XPS rendering process. ```Python xps_device = XpsDevice("output.xps", XpsRenderingOptions()) ``` -------------------------------- ### Get and Set start Property - Python Source: https://reference.aspose.com/html/python-net/aspose.html/htmlolistelement/start This snippet demonstrates how to access and modify the 'start' property of an HTMLOListElement object using Python. It includes both the getter and setter methods for the property. ```Python Copy@property def start(self): ... @start.setter def start(self, value): ... ``` -------------------------------- ### Initialize DocDevice with Options and Stream Provider Source: https://reference.aspose.com/html/python-net/aspose.html.rendering.doc/docdevice/__init__ Initializes a new instance of the DocDevice class with specified rendering options and a stream provider. This provides fine-grained control over the rendering process. ```Python def __init__(self, options, stream_provider): ... ``` -------------------------------- ### Get and Set line_dash_offset Property in Python Source: https://reference.aspose.com/html/python-net/aspose.html.dom.canvas/icanvasdrawingstyles/line_dash_offset Demonstrates how to get and set the line_dash_offset property for ICanvasDrawingStyles in Aspose.HTML for Python via .NET. This property specifies where to start a dash array on a line. ```Python from aspose.html.dom.canvas import ICanvasDrawingStyles # Assuming 'drawing_styles' is an instance of ICanvasDrawingStyles # Get the current line dash offset current_offset = drawing_styles.line_dash_offset # Set a new line dash offset new_offset = 5.0 drawing_styles.line_dash_offset = new_offset ``` -------------------------------- ### Initialize XpsDevice with Options and Stream Source: https://reference.aspose.com/html/python-net/aspose.html.rendering.xps/xpsdevice/__init__ Initializes a new instance of the XpsDevice class with rendering options and an output stream. This enables fine-grained control over rendering to a stream. ```Python def __init__(self, options, stream): ... ``` -------------------------------- ### Configure Page Setup with ImageSaveOptions Source: https://reference.aspose.com/html/python-net/aspose.html.saving/imagesaveoptions Gets a page setup object used for configuring the output page settings when saving as an image. This includes properties like page size and margins. ```Python page_setup = image_save_options.page_setup # Configure page_setup properties here... ``` -------------------------------- ### Initialize XpsDevice with Options and Stream Provider Source: https://reference.aspose.com/html/python-net/aspose.html.rendering.xps/xpsdevice/__init__ Initializes a new instance of the XpsDevice class with specified rendering options and a stream provider. This provides control over rendering quality and output stream management. ```Python def __init__(self, options, stream_provider): ... ``` -------------------------------- ### Get and Set x1 Property of SVGLinearGradientElement Source: https://reference.aspose.com/html/python-net/aspose.html.dom.svg/svglineargradientelement/x1 This snippet demonstrates how to get and set the 'x1' attribute of an SVGLinearGradientElement. The 'x1' attribute defines the x-coordinate of the starting point of the gradient vector. It is a required attribute for the linearGradient element. ```Python from aspose.html import HtmlDocument from aspose.html.dom.svg import SVGLinearGradientElement # Load an HTML file containing an SVG document = HtmlDocument("input.html") # Find the SVGLinearGradientElement linear_gradient = document.query_selector("svg linearGradient") if linear_gradient: # Get the current value of x1 current_x1 = linear_gradient.x1 print(f"Current x1: {current_x1}") # Set a new value for x1 linear_gradient.x1 = "50%" print(f"New x1: {linear_gradient.x1}") # Save the document document.save("output.html") else: print("SVGLinearGradientElement not found.") ``` -------------------------------- ### Initialize DocDevice with Options and Stream Source: https://reference.aspose.com/html/python-net/aspose.html.rendering.doc/docdevice/__init__ Initializes a new instance of the DocDevice class with rendering options and an output stream. This is suitable for scenarios where rendering needs to be customized and directed to a specific stream. ```Python def __init__(self, options, stream): ... ``` -------------------------------- ### Get Page Setup Configuration - Python Source: https://reference.aspose.com/html/python-net/aspose.html.saving/docsaveoptions/page_setup Retrieves the page setup object used for configuring the output page settings. This property is essential for controlling aspects like page size, margins, and orientation when saving documents. ```Python copy @property def page_setup(self): ... ``` -------------------------------- ### Initialize XpsDevice with Stream Source: https://reference.aspose.com/html/python-net/aspose.html.rendering.xps/xpsdevice/__init__ This example demonstrates initializing XpsDevice using a stream object without specifying rendering options. Default rendering options will be applied. ```Python with open("output.xps", "wb") as stream: xps_device = XpsDevice(stream) ``` -------------------------------- ### Start New Page with Size in Aspose.HTML Python Source: https://reference.aspose.com/html/python-net/aspose.html.rendering.pdf/pdfdevice/begin_page Initiates a new page for rendering with a specified size. This method is part of the PDF rendering capabilities in Aspose.HTML for Python. ```Python def begin_page(self, size): ... ``` -------------------------------- ### Get byte_offset - Python Source: https://reference.aspose.com/html/python-net/aspose.html/int16array/byte_offset Retrieves the byte offset from the start of the referenced ArrayBuffer using the byte_offset property. ```Python def byte_offset(self): ... ``` -------------------------------- ### Get SVGMetadataElement class_list Source: https://reference.aspose.com/html/python-net/aspose.html.dom.svg/svgmetadataelement/class_list This example demonstrates how to access the class_list property of an SVGMetadataElement to retrieve its associated CSS classes. ```Python from aspose.html.dom.svg import SVGMetadataElement # Assuming 'svg_element' is an instance of SVGMetadataElement # For example: # document = html.fromfile("sample.html") # svg_element = document.query_selector("svg > metadata") if isinstance(svg_element, SVGMetadataElement): token_list = svg_element.class_list print(f"Classes: {token_list}") # You can also add, remove, or toggle classes # token_list.add("new-class") # token_list.remove("old-class") # token_list.toggle("another-class") else: print("The selected element is not an SVGMetadataElement.") ``` -------------------------------- ### Begin Rendering a New Page in Aspose.HTML for Python Source: https://reference.aspose.com/html/python-net/aspose.html.rendering.doc/docdevice/begin_page The `begin_page` method is used to start the rendering process for a new page within the Aspose.HTML for Python library. It requires a `SizeF` object to define the dimensions of the page to be rendered. ```Python def begin_page(self, size): ... ``` -------------------------------- ### Initialize XpsDevice with Options and File Path Source: https://reference.aspose.com/html/python-net/aspose.html.rendering.xps/xpsdevice/__init__ Initializes a new instance of the XpsDevice class with rendering options and an output file name. This constructor allows for customized file rendering. ```Python def __init__(self, options, file): ... ``` -------------------------------- ### Get class_list Property Source: https://reference.aspose.com/html/python-net/aspose.html.dom.svg/svgcursorelement/class_list This example demonstrates how to access the class_list property of an SVGCursorElement to retrieve its associated CSS classes. ```Python from aspose.html.dom.svg import SVGCursorElement # Assuming 'cursor_element' is an instance of SVGCursorElement # cursor_element = SVGCursorElement(...) # Get the DOMTokenList of classes class_list = cursor_element.class_list # You can now iterate through class_list or manipulate it # For example, to print all classes: # for class_name in class_list: # print(class_name) ``` -------------------------------- ### Get Page Setup for XPS Rendering Options Source: https://reference.aspose.com/html/python-net/aspose.html.rendering.xps/xpsrenderingoptions/page_setup This snippet demonstrates how to access the `page_setup` property of the `XpsRenderingOptions` class. This property returns a `PageSetup` object, which is used to configure the output page settings for XPS rendering. ```Python from aspose.html.rendering.xps import XpsRenderingOptions # Assuming 'options' is an instance of XpsRenderingOptions # options = XpsRenderingOptions() page_setup = options.page_setup # Now you can configure the page_setup object, for example: # page_setup.page_width = 200 # page_setup.page_height = 300 ``` -------------------------------- ### Get SVGClipPathElement class_name Source: https://reference.aspose.com/html/python-net/aspose.html.dom.svg/svgclippathelement/class_name This example demonstrates how to retrieve the value of the 'class' attribute from an SVGClipPathElement using the class_name property. ```Python from aspose.html import svg from aspose.html.dom import svg # Assuming 'element' is an instance of SVGClipPathElement # For example: # document = html.HtmlDocument("
") # element = document.query_selector("clipPath") # Get the class name class_name = element.class_name print(f"The class name is: {class_name}") ``` -------------------------------- ### Create and configure Configuration instance in Aspose.HTML Source: https://reference.aspose.com/html/python-net/aspose.html/configuration Illustrates how to create and configure an instance of the Configuration object using the create method. This method allows for specific setup of the configuration object. ```Python # Create and configure the instance of Configuration object. config = Configuration.create() ``` -------------------------------- ### Get byte_offset Property Source: https://reference.aspose.com/html/python-net/aspose.html/float32array/byte_offset Retrieves the byte offset from the start of the referenced ArrayBuffer for a Float32Array object. This is a property of the Float32Array class. ```Python def byte_offset(self): ... ``` -------------------------------- ### Initialize XpsDevice with Stream and Rendering Options Source: https://reference.aspose.com/html/python-net/aspose.html.rendering.xps/xpsdevice/__init__ This snippet illustrates initializing XpsDevice using a stream object (e.g., from a file or memory stream) and XpsRenderingOptions. This is beneficial when working with data streams directly. ```Python with open("output.xps", "wb") as stream: xps_device = XpsDevice(stream, XpsRenderingOptions()) ``` -------------------------------- ### Accessing Children of SVGRadialGradientElement Source: https://reference.aspose.com/html/python-net/aspose.html.dom.svg/svgradialgradientelement/children This example demonstrates how to access the children of an `SVGRadialGradientElement`. It shows how to get the collection of child elements and iterate through them. ```Python from aspose.html import HtmlDocument from aspose.html.dom.svg import SVGRadialGradientElement # Load an HTML document document = HtmlDocument("") # Get the SVGRadialGradientElement radial_gradient = document.query_selector("radialGradient") # Access the children property children = radial_gradient.children # Iterate through the children for child in children: print(child.node_name) ``` -------------------------------- ### Get SVGAnimationElement class_name Source: https://reference.aspose.com/html/python-net/aspose.html.dom.svg/svganimationelement/class_name This example demonstrates how to retrieve the class name of an SVGAnimationElement. It assumes you have an existing SVG document and an SVGAnimationElement instance. ```Python from aspose.html import svg from aspose.html.dom import svg # Assuming 'animation_element' is an instance of SVGAnimationElement # For example, obtained from an SVG document: # document = html.HtmlDocument("input.svg") # animation_element = document.get_elements_by_tag_name("animate")[0] class_name = animation_element.class_name print(f"The class name is: {class_name}") ``` -------------------------------- ### Initialize XpsDevice with File Path Source: https://reference.aspose.com/html/python-net/aspose.html.rendering.xps/xpsdevice/__init__ Initializes a new instance of the XpsDevice class by specifying the output file name. This is a convenient way to directly render to a file. ```Python def __init__(self, file): ... ``` -------------------------------- ### Initialize PdfDevice with Options and File Path Source: https://reference.aspose.com/html/python-net/aspose.html.rendering.pdf/pdfdevice/__init__ Initializes a new instance of the PdfDevice class with rendering options and an output file name. This constructor enables fine-grained control over PDF rendering and direct file output. ```Python def __init__(self, options, file): ... ``` -------------------------------- ### Get byte_offset Property Source: https://reference.aspose.com/html/python-net/aspose.html/float64array/byte_offset Retrieves the byte offset from the start of a referenced ArrayBuffer using the byte_offset property. This is part of the Aspose.HTML library for Python. ```Python from aspose.html.collections import Float64Array # Assuming 'typed_array' is an instance of Float64Array or a similar typed array class # For example: # typed_array = Float64Array(buffer, byte_offset, length) # Get the byte offset byte_offset_value = typed_array.byte_offset print(f"The byte offset is: {byte_offset_value}") ``` -------------------------------- ### Get Page Setup for PdfSaveOptions Source: https://reference.aspose.com/html/python-net/aspose.html.saving/pdfsaveoptions/page_setup Retrieves the `PageSetup` object associated with `PdfSaveOptions`. This object is used to configure the output page settings for PDF generation. ```Python copy@property def page_setup(self): ... ``` -------------------------------- ### Initialize DocDevice with Options and File Name Source: https://reference.aspose.com/html/python-net/aspose.html.rendering.doc/docdevice/__init__ Initializes a new instance of the DocDevice class with rendering options and an output file name. This constructor is used when specific rendering settings are required for a file output. ```Python def __init__(self, options, file): ... ``` -------------------------------- ### Get Child Nodes of HTMLBRElement Source: https://reference.aspose.com/html/python-net/aspose.html/htmlbrelement/child_nodes Retrieves a live NodeList containing all child nodes (elements, text, comments) of an HTMLBRElement, indexed starting from 0. ```Python def child_nodes(self): ... ``` -------------------------------- ### Begin Document Rendering in Python Source: https://reference.aspose.com/html/python-net/aspose.html.rendering/idevice/begin_document This snippet demonstrates how to begin rendering a document using the begin_document method. It takes an Aspose.HTML DOM Document object as input. ```Python def begin_document(self, document): ... ``` -------------------------------- ### Get Elements by Tag Name Source: https://reference.aspose.com/html/python-net/aspose.html.dom.svg/svgdocument Returns a live HTMLCollection of elements with the specified tag name. The search includes the entire document, starting from the root node. ```Python document.get_elements_by_tag_name(tag_name) ``` -------------------------------- ### Get SVGAnimateTransformElement class_name Source: https://reference.aspose.com/html/python-net/aspose.html.dom.svg/svganimatetransformelement/class_name This example demonstrates how to retrieve the class name of an SVGAnimateTransformElement using the class_name property. It assumes you have an SVG document loaded and an SVGAnimateTransformElement instance. ```Python svg_animate_transform_element = ... # Obtain an SVGAnimateTransformElement instance class_name = svg_animate_transform_element.class_name print(f"The class name is: {class_name}") ``` -------------------------------- ### Initialize PdfDevice with Options and Stream Provider Source: https://reference.aspose.com/html/python-net/aspose.html.rendering.pdf/pdfdevice/__init__ Initializes a new instance of the PdfDevice class with specific rendering options and a stream provider. This allows for customized PDF generation with control over the output stream. ```Python def __init__(self, options, stream_provider): ... ``` -------------------------------- ### Get byte_offset Property in Python Source: https://reference.aspose.com/html/python-net/aspose.html/uint8array/byte_offset This snippet demonstrates how to access the `byte_offset` property of the `Uint8Array` class in Python. This property returns the byte offset from the start of the referenced ArrayBuffer. ```Python from aspose.html import Uint8Array # Assuming 'uint8_array_instance' is an instance of Uint8Array # byte_offset = uint8_array_instance.byte_offset ``` -------------------------------- ### Initialize DocDevice Class - Aspose.HTML Python Source: https://reference.aspose.com/html/python-net/aspose.html.rendering.doc/docdevice Demonstrates initializing the DocDevice class in Python for rendering HTML to DOCX. Various constructors are available depending on whether rendering options, stream providers, output file names, or output streams are specified. ```Python import aspose.html.rendering.doc # Example initialization (specific constructor usage would depend on context) # new instance of the DocDevice class doc_device = aspose.html.rendering.doc.DocDevice() # Initializes a new instance of the DocDevice class by rendering options and stream provider. # doc_device = aspose.html.rendering.doc.DocDevice(options, stream_provider) # Initializes a new instance of the DocDevice class by output file name. # doc_device = aspose.html.rendering.doc.DocDevice("output.docx") # Initializes a new instance of the DocDevice class by rendering options and output file name. # doc_device = aspose.html.rendering.doc.DocDevice(options, "output.docx") # Initializes a new instance of the DocDevice class by output stream. # doc_device = aspose.html.rendering.doc.DocDevice(output_stream) # Initializes a new instance of the DocDevice class by rendering options and output stream. # doc_device = aspose.html.rendering.doc.DocDevice(options, output_stream) ```