### Page Setup Property Source: https://reference.aspose.com/svg/python-net/aspose.svg.rendering.image/imagerenderingoptions/page_setup Gets a page setup object used for configuring output page settings. ```APIDOC ## GET /api/svg/rendering/image/page_setup ### Description Gets a page setup object used for configuring output page settings. ### Method GET ### Endpoint /api/svg/rendering/image/page_setup ### Parameters None ### Response #### Success Response (200) - **page_setup** (object) - The page setup configuration. - **width** (number) - The width of the page. - **height** (number) - The height of the page. - **units** (string) - The units for width and height (e.g., 'px', 'in'). #### Response Example ```json { "page_setup": { "width": 800, "height": 600, "units": "px" } } ``` ``` -------------------------------- ### Page Setup Property Source: https://reference.aspose.com/svg/python-net/aspose.svg.saving/xpssaveoptions/page_setup Retrieves a page setup object used for configuring output page settings. ```APIDOC ## GET /page_setup ### Description Gets a page setup object that is used for configuring output page settings. ### Method GET ### Endpoint /page_setup ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Request Example None ### Response #### Success Response (200) - **page_setup** (PageSetup) - An object representing the page setup configuration. #### Response Example ```json { "page_setup": { "units": "Inches", "width": 8.5, "height": 11.0, "top_margin": 1.0, "bottom_margin": 1.0, "left_margin": 1.0, "right_margin": 1.0 } } ``` ``` -------------------------------- ### Configuration Constructor Source: https://reference.aspose.com/svg/python-net/aspose.svg/configuration/__init__ Initializes a new instance of the Configuration class. ```APIDOC ## __init__ ### Description Initializes a new instance of the `Configuration` class. ### Method `__init__` ### Endpoint N/A (Class constructor) ### Parameters None ### Request Example ```python from aspose.svg import Configuration config = Configuration() ``` ### Response #### Success Response Initializes the `Configuration` object. #### Response Example ```python # No direct response, object is created in memory ``` ### See Also * module `aspose.svg` * class `Configuration` ``` -------------------------------- ### Product Information Source: https://reference.aspose.com/svg/python-net/aspose.svg.dom.css/icssmarginrule/parent_rule Lists available Aspose products and their solutions. ```APIDOC ## GET /api/products/all ### Description Retrieves a list of all Aspose products and their associated solutions. ### Method GET ### Endpoint /api/products/all ### Parameters None ### Response #### Success Response (200) - **products** (array) - A list of product objects. - **name** (string) - The name of the product. - **solution** (string) - The solution type (e.g., "Product Family", "Product Solution"). #### Response Example { "products": [ { "name": "Aspose.Total", "solution": "Product Family" }, { "name": "Aspose.Words", "solution": "Product Solution" } ] } ``` -------------------------------- ### Get Page Setup Object - Aspose.SVG Python Source: https://reference.aspose.com/svg/python-net/aspose.svg.rendering/renderingoptions/page_setup Retrieves the page setup object used for configuring output page settings. This property is part of the rendering options for Aspose.SVG in Python. ```python from aspose.svg.rendering import PageSetup # Assuming 'renderer' is an instance of a renderer class that has a page_setup property # For example, if you are using SVGDevice or similar # page_setup_object = renderer.page_setup # Example of accessing the property (actual usage depends on context) # print(page_setup_object) ``` -------------------------------- ### Get Page Setup Object in Aspose.SVG Python.NET Source: https://reference.aspose.com/svg/python-net/aspose.svg.saving/pdfsaveoptions/page_setup Retrieves the page setup object used for configuring output page settings. This property is part of the Aspose.SVG saving module and is related to PdfSaveOptions. ```python @property def page_setup(self): ... ``` -------------------------------- ### begin_document Method Source: https://reference.aspose.com/svg/python-net/aspose.svg.rendering.skia/skiacanvasdevice/begin_document Initializes a new document within the Aspose.SVG rendering context. This method is part of the SkiaCanvasDevice class in the aspose.svg.rendering.skia module. ```APIDOC ## begin_document ### Description Initializes a new document for rendering. ### Method `begin_document(self, document)` ### Parameters #### Path Parameters - **document** (aspose.svg.dom.Document) - Required - The SVG document object to begin rendering. ### Request Example ```python # Assuming 'svg_document' is an instance of aspose.svg.dom.Document canvas_device.begin_document(svg_document) ``` ### Response #### Success Response (200) This method does not return a value, but initiates the document rendering process. ### See Also - module `aspose.svg.rendering.skia` - class `SkiaCanvasDevice` ``` -------------------------------- ### Get Page Setup Object - Aspose.SVG Python.NET Source: https://reference.aspose.com/svg/python-net/aspose.svg.rendering.pdf/pdfrenderingoptions/page_setup Retrieves the page setup object used for configuring output page settings in Aspose.SVG for Python.NET. This property is part of the rendering options for PDF output. ```python from aspose.svg.rendering.pdf import PdfRenderingOptions options = PdfRenderingOptions() page_setup = options.page_setup print(page_setup) ``` -------------------------------- ### See Also Source: https://reference.aspose.com/svg/python-net/aspose.svg.dom/node/comment_node Provides links to related modules and classes for further reference. ```APIDOC ## See Also ### Description Links to related modules and classes for more information. ### Method GET ### Endpoint /websites/reference_aspose_svg_python-net/see_also ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Request Example None ### Response #### Success Response (200) - **related_modules** (array) - List of related modules. - **name** (string) - Name of the module. - **link** (string) - Link to the module documentation. - **related_classes** (array) - List of related classes. - **name** (string) - Name of the class. - **link** (string) - Link to the class documentation. #### Response Example { "related_modules": [ { "name": "aspose.svg.dom", "link": "/websites/reference_aspose_svg_python-net/dom" } ], "related_classes": [ { "name": "Node", "link": "/websites/reference_aspose_svg_python-net/node" } ] } ``` -------------------------------- ### Get Page Setup Object - Aspose.SVG Python.NET Source: https://reference.aspose.com/svg/python-net/aspose.svg.saving/xpssaveoptions/page_setup Retrieves a page setup object for configuring output page settings. This property is part of the Aspose.SVG saving module and is related to the PageSetup and XpsSaveOptions classes. ```python from aspose.svg.saving import PageSetup, XpsSaveOptions # Assuming 'document' is an instance of a class that has the page_setup property # For example, if you were working with save options: # save_options = XpsSaveOptions() # page_setup_config = save_options.page_setup # The actual usage would depend on the context where 'page_setup' is accessed. # This is a conceptual representation based on the provided documentation. print("Accessing page_setup property...") # Example placeholder for accessing the property: # page_setup_object = some_object.page_setup # print(page_setup_object) ``` -------------------------------- ### begin_document Method Source: https://reference.aspose.com/svg/python-net/aspose.svg.rendering.pdf/pdfdevice/add_rect Begins the document rendering process for the PdfDevice. This method is typically called before rendering pages. ```APIDOC ## begin_document Method ### Description Begins the document rendering process. ### Method `begin_document(self)` ### See Also - module `aspose.svg.rendering.pdf` - class `PdfDevice` ``` -------------------------------- ### Sizing Property Source: https://reference.aspose.com/svg/python-net/aspose.svg.rendering/pagesetup/sizing This section describes the 'sizing' property, which allows you to get or set the sizing type for page setup in Aspose.SVG. ```APIDOC ## sizing property ### Description Gets or sets the sizing type. ### Method This property is accessed via a getter and setter. ### Endpoint N/A (This is a property of a class, not a REST endpoint) ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Request Example ```python # Assuming 'page_setup' is an instance of PageSetup current_sizing = page_setup.sizing page_setup.sizing = SizingType.FIT_TO_PAGE # Example usage ``` ### Response #### Success Response - **sizing** (SizingType) - The current sizing type. #### Response Example ```json { "sizing": "FIT_TO_PAGE" } ``` ### See Also - module `aspose.svg.rendering` - class `PageSetup` - class `SizingType` ``` -------------------------------- ### Get Text Content in Aspose.SVG (Python) Source: https://reference.aspose.com/svg/python-net/aspose.svg/svganimatemotionelement/viewport_element This property is mentioned in the context of Aspose.SVG but no code example is provided. It likely relates to extracting text from SVG elements. -------------------------------- ### XpsDevice.begin_page Source: https://reference.aspose.com/svg/python-net/aspose.svg.rendering.xps/xpsdevice/begin_page Begins a new page with the specified size in the XPS rendering device. ```APIDOC ## begin_page ### Description Begins a new page with the specified size in the XPS rendering device. ### Method `begin_page` ### Endpoint N/A (This is a method within a class) ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Request Example ```python # Assuming 'xps_device' is an instance of XpsDevice page_size = aspose.pydrawing.SizeF(width=8.5, height=11.0) # Example size xps_device.begin_page(size=page_size) ``` ### Response #### Success Response (200) This method does not return a value, but initiates a new page for rendering. #### Response Example None ``` -------------------------------- ### Get Z Property of fePointLight Element (Python) Source: https://reference.aspose.com/svg/python-net/aspose.svg.filters/svgfepointlightelement/z Retrieves the 'z' attribute value from an 'fePointLight' element using the Aspose.SVG library. This property corresponds to the z-coordinate of the light source. It requires the 'aspose-svg' library to be installed. ```python from aspose.svg.filters import SVGAnimatedNumber from aspose.svg.elements.lighting import SVGFEPointLightElement # Assuming 'element' is an instance of SVGFEPointLightElement # z_property = element.z ``` -------------------------------- ### Purchase Options Source: https://reference.aspose.com/svg/python-net/aspose.svg/svgtextpositioningelement/node_name Lists available purchase options including buy now, pricing, free trials, and licensing. ```APIDOC ## Purchase Options API ### Description This API provides access to various purchasing-related information, including direct purchase links, pricing details, free trial options, and license management. ### Method GET ### Endpoint /api/purchase/options ### Parameters None ### Response #### Success Response (200) - **options** (array) - A list of available purchase options, each with: - **name** (string) - The name of the option (e.g., "Buy Now", "Pricing Information", "Free Trials"). - **url** (string) - The URL associated with the option. #### Response Example ```json { "options": [ { "name": "Buy Now", "url": "https://purchase.aspose.com/buy" }, { "name": "Pricing Information", "url": "https://purchase.aspose.com/pricing" }, { "name": "Free Trials", "url": "https://purchase.aspose.com/free-trial" } ] } ``` ``` -------------------------------- ### CSS Property: page_setup Source: https://reference.aspose.com/svg/python-net/aspose.svg.rendering/renderingoptions/horizontal_resolution Documentation for the 'page_setup' CSS property within the Aspose.SVG API. ```APIDOC ## CSS Property: page_setup ### Description This section would detail the 'page_setup' CSS property, its usage, and its effects within the Aspose.SVG rendering context. (Specific details not provided in the input text). ### Method N/A (CSS Property) ### Endpoint N/A (CSS Property) ### Parameters None ### Request Example ```css /* Example of how page_setup might be used in CSS */ svg { page-setup: "A4 landscape"; /* Hypothetical usage */ } ``` ### Response N/A (CSS Property) ``` -------------------------------- ### Get System Language Property in Aspose.SVG (Python.NET) Source: https://reference.aspose.com/svg/python-net/aspose.svg/svgtextpathelement/system_language Demonstrates how to access the 'system_language' property of an SVG element using Aspose.SVG for Python.NET. This property corresponds to the 'systemLanguage' attribute of the SVG element. It requires the Aspose.SVG library to be installed. ```python from aspose.svg.datatypes import SVGStringList from aspose.svg.paths import SVGTextPathElement # Example usage for SVGStringList svg_string_list = SVGStringList() # Assuming svg_string_list is populated with values # print(svg_string_list.system_language) # Example usage for SVGTextPathElement svg_text_path_element = SVGTextPathElement() # Assuming svg_text_path_element is properly initialized and has a systemLanguage attribute # print(svg_text_path_element.system_language) # The actual implementation would involve loading an SVG document and accessing elements. # For instance: # from aspose.svg import SVGDocument # document = SVGDocument.from_file("input.svg") # text_path_element = document.get_element_by_id("myTextPath") # if text_path_element: # print(text_path_element.system_language) ``` -------------------------------- ### All Products API Source: https://reference.aspose.com/svg/python-net/aspose.svg.dom/comment Retrieves a list of all available Aspose products. ```APIDOC ## GET /api/products/all ### Description Fetches a comprehensive list of all products offered by Aspose. ### Method GET ### Endpoint /api/products/all ### Parameters #### Query Parameters - **family** (string) - Optional - Filters products by a specific product family (e.g., 'Aspose.Total'). ### Response #### Success Response (200) - **products** (array) - A list of product objects. - **name** (string) - The name of the product. - **type** (string) - The type of the product (e.g., 'Product Family', 'Product Solution'). #### Response Example ```json { "products": [ { "name": "Aspose.Total", "type": "Product Family" }, { "name": "Aspose.Words", "type": "Product Solution" } ] } ``` ``` -------------------------------- ### Get Intercept Property Value - Python Source: https://reference.aspose.com/svg/python-net/aspose.svg.filters/svgfefuncrelement/intercept Retrieves the value of the 'intercept' attribute from an SVG element using the Aspose.SVG library. This property corresponds to the 'intercept' attribute of the SVG element. It requires the Aspose.SVG library to be installed. ```python from aspose.svg.filters import SVGAnimatedNumber class YourClass: @property def intercept(self) -> SVGAnimatedNumber: """Corresponds to attribute ‘intercept’ on the given element.""" # Implementation details would go here pass ``` -------------------------------- ### Product Information API Source: https://reference.aspose.com/svg/python-net/aspose.svg.filters/svgfemorphologyelement/prefix Retrieves a list of all available Aspose products. ```APIDOC ## GET /api/products/all ### Description Fetches a comprehensive list of all Aspose products offered. ### Method GET ### Endpoint /api/products/all ### Parameters None ### Response #### Success Response (200) - **products** (array) - A list of product objects, each containing product details. - **name** (string) - The name of the product. - **family** (string) - The product family. - **solution** (string) - The product solution type. #### Response Example ```json { "products": [ { "name": "Aspose.Words", "family": "Product Family", "solution": "Product Solution" }, { "name": "Aspose.PDF", "family": "Product Family", "solution": "Product Solution" } ] } ``` ``` -------------------------------- ### Get Active Document Property in Aspose.SVG (Python) Source: https://reference.aspose.com/svg/python-net/aspose.svg.dom/ibrowsingcontext/active_document This code snippet demonstrates how to access the 'active_document' property of the Aspose.SVG DOM module. This property returns the current document object, which can be used for further manipulation. It requires the 'aspose-svg' library to be installed. ```python from aspose.svg.dom import Document from aspose.svg.rendering import IBrowsingContext # Assuming 'self' is an instance of a class that has access to the SVG document context # For example, within a rendering or manipulation class. # Get the active document current_document = self.active_document # You can now work with the current_document object # For example, to get its title: # if current_document: # print(f"Current document title: {current_document.title}") ``` -------------------------------- ### Get required_features Property - Aspose.SVG Python.NET Source: https://reference.aspose.com/svg/python-net/aspose.svg/isvgtests/required_features This code snippet demonstrates how to access the 'required_features' property within the Aspose.SVG library for Python.NET. This property reflects the 'requiredFeatures' attribute of an SVG element. It requires the 'aspose-svg' library to be installed. ```python from aspose.svg import ISVGTests, SVGStringList # Assuming 'element' is an instance of a class that has the requiredFeatures attribute # For example, if you have loaded an SVG document and are accessing an element: # svg_document = svg.SVGDocument("input.svg") # element = svg_document.get_element_by_id("some_element_id") # This is a placeholder for demonstration purposes class MockElement: def __init__(self): self.required_features = SVGStringList() self.required_features.append("FeatureA") self.required_features.append("FeatureB") element = MockElement() # Accessing the required_features property required_features_list = element.required_features # You can then iterate through the list or check for specific features print(f"Required Features: {required_features_list}") for feature in required_features_list: print(f"- {feature}") ``` -------------------------------- ### Support Resources API Source: https://reference.aspose.com/svg/python-net/aspose.svg.filters/svgfecompositeelement/attributes Lists available support resources such as documentation, API references, and tutorials. ```APIDOC ## GET /api/support/resources ### Description Fetches a list of available support resources for Aspose products. ### Method GET ### Endpoint /api/support/resources ### Response #### Success Response (200) - **resources** (array) - A list of support resource objects, each containing: - **name** (string) - The name of the resource (e.g., 'Docs', 'API Reference', 'Tutorials'). - **url** (string) - The URL to the resource. #### Response Example ```json { "resources": [ { "name": "Docs", "url": "/support/docs" }, { "name": "API Reference", "url": "/support/api-reference" }, { "name": "Tutorials", "url": "/support/tutorials" } ] } ``` ``` -------------------------------- ### Get Style Property of SVGTitleElement in Python Source: https://reference.aspose.com/svg/python-net/aspose.svg/svgtitleelement/style This snippet demonstrates how to access the 'style' property of an SVGTitleElement using the Aspose.SVG library in Python. The 'style' property allows manipulation of CSS styles applied to the SVG element. It requires the Aspose.SVG library to be installed. ```python from aspose.svg.elements import SVGTitleElement # Assuming 'element' is an instance of SVGTitleElement # For example, loaded from an SVG document: # svg_document = aspose.svg.SVGDocument("input.svg") # element = svg_document.root_element.get_elements_by_tag_name("title")[0] style_declaration = element.style # You can now access or modify CSS properties through style_declaration # For example: # style_declaration.set_property("fill", "red") # print(style_declaration.get_property_value("fill")) ``` -------------------------------- ### Product Information Source: https://reference.aspose.com/svg/python-net/aspose.svg/svggraphicselement/processing_instruction_node Retrieves information about all available Aspose products and their solutions. ```APIDOC ## GET /api/products/all ### Description Fetches a list of all Aspose products and their corresponding solutions. ### Method GET ### Endpoint /api/products/all ### Parameters None ### Response #### Success Response (200) - **products** (array) - A list of product objects. - **name** (string) - The name of the product. - **solution** (string) - The solution type for the product (e.g., "Product Family", "Product Solution"). #### Response Example ```json { "products": [ { "name": "Aspose.Total", "solution": "Product Family" }, { "name": "Aspose.Words", "solution": "Product Solution" } ] } ``` ``` -------------------------------- ### Support Resources Source: https://reference.aspose.com/svg/python-net/aspose.svg.filters/svgfefuncbelement/style Lists various support resources available for Aspose products, including documentation, tutorials, and community forums. ```APIDOC ## GET /api/support/resources ### Description Retrieves a list of available support resources. ### Method GET ### Endpoint /api/support/resources ### Parameters None ### Response #### Success Response (200) - **resources** (array) - A list of support resource objects. - **name** (string) - The name of the resource (e.g., "Docs", "API Reference"). - **url** (string) - The URL to access the resource. #### Response Example ```json { "resources": [ { "name": "Docs", "url": "https://docs.aspose.com/" }, { "name": "API Reference", "url": "https://reference.aspose.com/" } // ... more resources ] } ``` ``` -------------------------------- ### Get Page Setup Object in Aspose.SVG for Python Source: https://reference.aspose.com/svg/python-net/aspose.svg.rendering.xps/xpsrenderingoptions/page_setup This code snippet demonstrates how to access the `page_setup` property of an object in Aspose.SVG for Python. This property is used to configure output page settings. It requires the `aspose.svg.rendering.xps` module and the `PageSetup` class. ```python from aspose.svg.rendering.xps import PageSetup # Assuming 'renderer' is an object that has a page_setup property # For example, an instance of XpsRenderingOptions or a similar class # page_setup_object = renderer.page_setup # The actual instantiation and usage would depend on the context of the renderer object. # This is a conceptual representation of accessing the property. print("Accessing the page_setup property.") ``` -------------------------------- ### Support Resources Source: https://reference.aspose.com/svg/python-net/aspose.svg.filters/svgfedropshadowelement/dx Access documentation, API references, tutorials, and other support materials. ```APIDOC ## GET /api/support/docs ### Description Retrieves a list of documentation links for Aspose products. ### Method GET ### Endpoint /api/support/docs ### Parameters None ### Response #### Success Response (200) - **documentation** (array) - A list of documentation objects. - **product_name** (string) - The name of the product. - **url** (string) - The URL to the product's documentation. #### Response Example ```json { "documentation": [ { "product_name": "Aspose.SVG", "url": "https://docs.aspose.com/svg/" } ] } ``` ``` ```APIDOC ## GET /api/support/api-reference ### Description Retrieves API reference documentation links for Aspose products. ### Method GET ### Endpoint /api/support/api-reference ### Parameters None ### Response #### Success Response (200) - **api_references** (array) - A list of API reference objects. - **product_name** (string) - The name of the product. - **url** (string) - The URL to the product's API reference. #### Response Example ```json { "api_references": [ { "product_name": "Aspose.SVG", "url": "https://reference.aspose.com/svg/" } ] } ``` ``` -------------------------------- ### Get Current Time in Aspose.SVG (Python) Source: https://reference.aspose.com/svg/python-net/aspose.svg/svgsvgelement/get_current_time The get_current_time method returns the current time in seconds relative to the start time for the current SVG document fragment. It returns 0 if called before the document timeline has begun. This method is part of the SVGSVGElement class. ```python def get_current_time(self): ... ``` -------------------------------- ### Get and Set Matrix Element (m31) - Python Source: https://reference.aspose.com/svg/python-net/aspose.svg.drawing/imatrix/m31 This Python code snippet demonstrates how to access and modify the 'm31' property, which corresponds to the element in the third row and first column of a matrix object from the aspose.svg.drawing module. It requires the Aspose.SVG library to be installed. ```python from aspose.svg.drawing import IMatrix # Assuming 'matrix' is an instance of a class implementing IMatrix # Get the value of m31 m31_value = matrix.m31 # Set the value of m31 matrix.m31 = new_value ``` -------------------------------- ### Support Resources Source: https://reference.aspose.com/svg/python-net/aspose.svg/svgcircleelement/attribute_node Endpoints to access Aspose support documentation, API references, and tutorials. ```APIDOC ## GET /api/support/docs ### Description Retrieves a list of documentation links for Aspose products. ### Method GET ### Endpoint /api/support/docs ### Parameters #### Query Parameters - **productId** (string) - Optional - Filter documentation by a specific product ID. ### Response #### Success Response (200) - **documentation** (array) - A list of documentation objects. - **title** (string) - The title of the documentation. - **url** (string) - The URL to the documentation. #### Response Example ```json { "documentation": [ { "title": "Aspose.SVG for Python via .NET Documentation", "url": "https://docs.aspose.com/svg/python-net/" } ] } ``` ``` -------------------------------- ### Get Node Name in Aspose.SVG Python Source: https://reference.aspose.com/svg/python-net/aspose.svg.filters/svgfetileelement/node_name Retrieves the name of a node within an SVG document using the Aspose.SVG library for Python. This property is essential for identifying specific elements in the SVG structure. It depends on the Aspose.SVG library being installed and the SVG document being loaded. ```python from aspose.svg.filters import SVGFETileElement # Assuming 'element' is an instance of a node type that has a node_name property # For example, an SVGFETileElement or similar SVG element # Example usage (conceptual, actual element creation would depend on your SVG loading process): # svg_document = ... # Load your SVG document # element = svg_document.get_element_by_id('some_element_id') # if element: # node_name = element.node_name # print(f"The node name is: {node_name}") # Placeholder for the actual property access as shown in the documentation: class MockNode: @property def node_name(self): return "mock_node_name" node = MockNode() print(f"Node name: {node.node_name}") ``` -------------------------------- ### Support Resources Source: https://reference.aspose.com/svg/python-net/aspose.svg.dom.traversal.filters/nodefilter/show_processing_instruction Access documentation, API references, tutorials, and other support materials. ```APIDOC ## GET /api/support/docs ### Description Retrieves a list of documentation resources for Aspose products. ### Method GET ### Endpoint /api/support/docs ### Response #### Success Response (200) - **documentation_links** (array) - A list of links to documentation. #### Response Example ```json { "documentation_links": [ "https://docs.aspose.com/svg/", "https://docs.aspose.com/pdf/" ] } ``` ``` ```APIDOC ## GET /api/support/api-reference ### Description Provides links to the API reference documentation. ### Method GET ### Endpoint /api/support/api-reference ### Response #### Success Response (200) - **api_reference_links** (array) - A list of links to API reference documentation. #### Response Example ```json { "api_reference_links": [ "https://reference.aspose.com/svg/python-net/" ] } ``` ``` -------------------------------- ### Get Owner Document in Python using Aspose.SVG Source: https://reference.aspose.com/svg/python-net/aspose.svg/svgelementinstance/owner_document This Python code snippet demonstrates how to access the owner_document property of an SVG element instance. This property is crucial for navigating the SVG DOM and obtaining the root document object. It requires the Aspose.SVG library to be installed. ```python from aspose.svg import SVGDocument # Load an SVG file or create a new one doc = SVGDocument.from_file("input.svg") # Get an element instance (e.g., the first element) if doc.children and len(doc.children) > 0: element_instance = doc.children[0] # Access the owner_document property owner_doc = element_instance.owner_document # You can now work with the owner_doc object print(f"Owner Document Type: {type(owner_doc)}") else: print("The SVG document has no child elements.") ``` -------------------------------- ### All Products API Source: https://reference.aspose.com/svg/python-net/aspose.svg/svgellipseelement/tag_name Retrieves a list of all available Aspose products. ```APIDOC ## GET /api/products/all ### Description Fetches a comprehensive list of all products offered by Aspose. ### Method GET ### Endpoint /api/products/all ### Response #### Success Response (200) - **products** (array) - A list of product objects, each containing product details. - **name** (string) - The name of the product. - **family** (string) - The product family. - **solution** (string) - The product solution type. #### Response Example ```json { "products": [ { "name": "Aspose.Words", "family": "Aspose.Total", "solution": "Product Solution" }, { "name": "Aspose.PDF", "family": "Aspose.Total", "solution": "Product Solution" } ] } ``` ``` -------------------------------- ### Get CX Property of SVG Circle Element (Python) Source: https://reference.aspose.com/svg/python-net/aspose.svg/svgcircleelement/cx This snippet demonstrates how to access the 'cx' attribute of an SVG circle element using the Aspose.SVG library in Python. It requires the Aspose.SVG library to be installed. The function returns the value of the 'cx' property, which represents the x-coordinate of the circle's center. ```python from aspose.svg import SVGDocument from aspose.svg.elements import SVGCircleElement def get_cx_property(svg_file_path): document = SVGDocument(svg_file_path) circle_element = document.get_elements_by_tag_name("circle")[0] # Assuming the first circle element if isinstance(circle_element, SVGCircleElement): return circle_element.cx return None # Example usage: # svg_path = "path/to/your/file.svg" # cx_value = get_cx_property(svg_path) # if cx_value: # print(f"The cx property is: {cx_value}") ``` -------------------------------- ### Product Information Source: https://reference.aspose.com/svg/python-net/aspose.svg.dom/domexception/invalid_character_err Retrieves information about all available Aspose products. ```APIDOC ## GET /api/products/all ### Description Fetches a list of all Aspose products and their details. ### Method GET ### Endpoint /api/products/all ### Parameters #### Query Parameters - **family** (string) - Optional - Filter products by product family (e.g., 'Aspose.Total'). ### Response #### Success Response (200) - **products** (array) - A list of product objects. - **name** (string) - The name of the product. - **solution** (string) - The product solution type. #### Response Example { "products": [ { "name": "Aspose.Words", "solution": "Product Solution" }, { "name": "Aspose.PDF", "solution": "Product Solution" } ] } ``` -------------------------------- ### Define HTTP GET Method Property in Aspose.SVG (Python via .NET) Source: https://reference.aspose.com/svg/python-net/aspose.svg.net/httpmethod/get This snippet defines the 'get' property, representing an HTTP GET protocol method within the Aspose.SVG library for Python via .NET. It is part of the HttpMethod class and is essential for making GET requests. ```python @property def get(self): ... ``` -------------------------------- ### Support Resources Source: https://reference.aspose.com/svg/python-net/aspose.svg.dom/shadowroot/attribute_node Access various support resources including documentation, API references, tutorials, and code samples. ```APIDOC ## GET /api/support/resources ### Description Retrieves a list of available support resources such as documentation, API references, tutorials, and code samples. ### Method GET ### Endpoint /api/support/resources ### Response #### Success Response (200) - **resources** (array) - A list of support resource objects, each with a name and URL. #### Response Example ```json { "resources": [ { "name": "Docs", "url": "/support/docs" }, { "name": "API Reference", "url": "/support/api-reference" }, { "name": "Tutorials", "url": "/support/tutorials" } ] } ``` ``` -------------------------------- ### All Products API Source: https://reference.aspose.com/svg/python-net/aspose.svg/svgaelement/farthest_viewport_element Retrieves a list of all available Aspose products and their solutions. ```APIDOC ## GET /api/products/all ### Description Fetches a comprehensive list of all Aspose products, categorized by product family or solution type. ### Method GET ### Endpoint /api/products/all ### Parameters None ### Response #### Success Response (200) - **products** (array) - A list of product objects, each containing: - **name** (string) - The name of the product. - **type** (string) - The category or solution type (e.g., 'Product Family', 'Product Solution'). #### Response Example ```json { "products": [ { "name": "Aspose.Total", "type": "Product Family" }, { "name": "Aspose.Words", "type": "Product Solution" }, { "name": "Aspose.PDF", "type": "Product Solution" } ] } ``` ``` -------------------------------- ### Get and Set Node Value in SVGFilterElement (Python) Source: https://reference.aspose.com/svg/python-net/aspose.svg/svgfilterelement/node_value Demonstrates how to get and set the 'node_value' property of an SVGFilterElement in Python. This property represents the value of the current node. ```python from aspose.svg import SVGFilterElement # Assuming 'element' is an instance of SVGFilterElement # Get the node value node_value = element.node_value # Set the node value element.node_value = "new_value" ``` -------------------------------- ### Purchase Options Source: https://reference.aspose.com/svg/python-net/aspose.svg.filters/svgfemergenodeelement/attributes Provides access to various purchasing options including buy now, pricing, and free trials. ```APIDOC ## GET /api/purchase/options ### Description Retrieves available purchase options such as pricing, free trials, and license information. ### Method GET ### Endpoint /api/purchase/options ### Parameters None ### Response #### Success Response (200) - **options** (array) - A list of available purchase options. #### Response Example ```json { "options": [ "Buy Now", "Pricing Information", "Free Trials", "Temporary License" ] } ``` ``` -------------------------------- ### Get Notation Name Property in Python Source: https://reference.aspose.com/svg/python-net/aspose.svg.dom/entity/notation_name Demonstrates how to get and set the `notation_name` property for unparsed entities in Aspose.SVG for Python.NET. This property holds the name of the notation for the entity. ```python import aspose.svg.dom # Assuming 'entity' is an instance of aspose.svg.dom.Entity # Get the notation name notation_name = entity.notation_name # Set the notation name entity.notation_name = "my_notation" ``` -------------------------------- ### Support Resources Source: https://reference.aspose.com/svg/python-net/aspose.svg.dom.css/icssmarginrule/parent_rule Lists available support resources such as documentation, API references, and tutorials. ```APIDOC ## GET /api/support/resources ### Description Retrieves a list of available support resources for Aspose products. ### Method GET ### Endpoint /api/support/resources ### Parameters None ### Response #### Success Response (200) - **resources** (array) - A list of support resource objects. - **name** (string) - The name of the resource (e.g., "Docs", "API Reference"). - **url** (string) - The URL for the resource. #### Response Example { "resources": [ { "name": "Docs", "url": "https://docs.aspose.com/" }, { "name": "API Reference", "url": "https://reference.aspose.com/" } ] } ``` -------------------------------- ### Get and Set CSS Text Representation (Python) Source: https://reference.aspose.com/svg/python-net/aspose.svg.dom.css/icssrule/css_text Demonstrates how to get the parsable textual representation of a CSS rule and how to set it. This property reflects the current state of the rule. ```python from aspose.svg.dom.css import ICSSRule # Assuming 'rule' is an instance of a class implementing ICSSRule # Get the CSS text representation css_text_representation = rule.css_text # Set the CSS text representation new_css_text = "color: blue; font-size: 16px;" rule.css_text = new_css_text ``` -------------------------------- ### Get and Set border_bottom_color Property in Python Source: https://reference.aspose.com/svg/python-net/aspose.svg.dom.css/icss2properties/border_bottom_color Demonstrates how to get and set the `border_bottom_color` property using the `aspose.svg.dom.css.ICSS2Properties` class in Python. This property controls the color of the bottom border of an element. ```python from aspose.svg.dom.css import ICSS2Properties # Assuming 'element' is an object that implements ICSS2Properties # For demonstration, let's create a mock object class MockElement(ICSS2Properties): def __init__(self): self._border_bottom_color = "black" @property def border_bottom_color(self): print(f"Getting border_bottom_color: {self._border_bottom_color}") return self._border_bottom_color @border_bottom_color.setter def border_bottom_color(self, value): print(f"Setting border_bottom_color to: {value}") self._border_bottom_color = value element = MockElement() # Get the current border bottom color current_color = element.border_bottom_color # Set a new border bottom color element.border_bottom_color = "red" ``` -------------------------------- ### Support Resources API Source: https://reference.aspose.com/svg/python-net/aspose.svg/svgaelement/farthest_viewport_element Lists available support resources, including documentation, API references, tutorials, and free support. ```APIDOC ## GET /api/support/resources ### Description Provides access to various support resources offered by Aspose, including documentation, API references, tutorials, and community support channels. ### Method GET ### Endpoint /api/support/resources ### Parameters None ### Response #### Success Response (200) - **resources** (array) - A list of support resources, each with: - **name** (string) - The name of the resource (e.g., 'Docs', 'API Reference', 'Tutorials'). - **url** (string) - The URL to access the resource. #### Response Example ```json { "resources": [ { "name": "Docs", "url": "/support/docs" }, { "name": "API Reference", "url": "/support/api-reference" }, { "name": "Tutorials", "url": "/support/tutorials" }, { "name": "Free Support", "url": "/support/free-support" } ] } ``` ``` -------------------------------- ### Get and Set SVG Path Builder in Python Source: https://reference.aspose.com/svg/python-net/aspose.svg.imagevectorization/imagevectorizerconfiguration/path_builder Demonstrates how to get and set the SVG path segments builder using the path_builder property. This is part of the image vectorization configuration. ```python @property def path_builder(self): ... @path_builder.setter def path_builder(self, value): ... ``` -------------------------------- ### Purchase Options API Source: https://reference.aspose.com/svg/python-net/aspose.svg/svgellipseelement/tag_name Provides information on various purchase options, including pricing and free trials. ```APIDOC ## GET /api/purchase/options ### Description Retrieves available purchase options, such as pricing, free trials, and license types. ### Method GET ### Endpoint /api/purchase/options ### Response #### Success Response (200) - **options** (array) - A list of available purchase options. - **type** (string) - The type of option (e.g., "Buy Now", "Free Trial", "Pricing Information"). - **url** (string) - The URL to access more details about the option. #### Response Example ```json { "options": [ { "type": "Buy Now", "url": "/purchase/buy-now" }, { "type": "Free Trials", "url": "/purchase/free-trials" } ] } ``` ``` -------------------------------- ### Product Information Source: https://reference.aspose.com/svg/python-net/aspose.svg.dom/shadowroot/attribute_node Retrieves information about various Aspose products and their solutions. ```APIDOC ## GET /api/products ### Description Retrieves a list of all available Aspose products and their associated solutions. ### Method GET ### Endpoint /api/products ### Response #### Success Response (200) - **products** (array) - A list of product objects, each containing: - **name** (string) - The name of the product. - **solution** (string) - The solution type for the product (e.g., "Product Family", "Product Solution"). #### Response Example ```json { "products": [ { "name": "Aspose.Total", "solution": "Product Family" }, { "name": "Aspose.Words", "solution": "Product Solution" } ] } ``` ``` -------------------------------- ### Get and Set system_id Property in Aspose.SVG (Python) Source: https://reference.aspose.com/svg/python-net/aspose.svg.dom/entity/system_id Demonstrates how to get and set the system_id property for an entity in Aspose.SVG for Python. This property represents the system identifier associated with the entity. ```python from aspose.svg.dom import Entity # Assuming 'entity' is an instance of the Entity class # entity = Entity(...) # Get the system_id system_id_value = entity.system_id # Set the system_id new_system_id = "http://example.com/systemid" entity.system_id = new_system_id ``` -------------------------------- ### Products - All Products Source: https://reference.aspose.com/svg/python-net/aspose.svg/svgcomponenttransferfunctionelement/owner_document Retrieves a list of all available Aspose products. ```APIDOC ## GET /api/products ### Description Fetches a comprehensive list of all Aspose products, categorized by product family and solution type. ### Method GET ### Endpoint /api/products ### Parameters #### Query Parameters - **category** (string) - Optional - Filters products by category (e.g., "Product Family", "Product Solution"). ### Response #### Success Response (200) - **products** (array) - A list of product objects, each containing: - **name** (string) - The name of the product. - **family** (string) - The product family. - **solution** (string) - The product solution type. #### Response Example ```json { "products": [ { "name": "Aspose.Words", "family": "Aspose.Total", "solution": "Product Solution" }, { "name": "Aspose.PDF", "family": "Aspose.Total", "solution": "Product Solution" } ] } ``` ``` -------------------------------- ### Get and Set SVGStyleElement Type Property (Python.NET) Source: https://reference.aspose.com/svg/python-net/aspose.svg/svgstyleelement/type Demonstrates how to get and set the 'type' attribute of an SVGStyleElement using Aspose.SVG for Python.NET. This property corresponds to the 'type' attribute on the SVG element. ```python from aspose.svg import SVGStyleElement # Assuming 'element' is an instance of SVGStyleElement # Get the type property type_value = element.type # Set the type property element.type = "text/css" ``` -------------------------------- ### Get and Set node_value Property in SVGMarkerElement (Python) Source: https://reference.aspose.com/svg/python-net/aspose.svg/svgmarkerelement/node_value Demonstrates how to get and set the node_value property of an SVGMarkerElement in Python. This property represents the value of the current node. It requires the Aspose.SVG library. ```python from aspose.svg import SVGMarkerElement # Assuming 'marker_element' is an instance of SVGMarkerElement # Get the node value node_value = marker_element.node_value # Set the node value marker_element.node_value = "new_value" ``` -------------------------------- ### PaintBuilder Constructor Source: https://reference.aspose.com/svg/python-net/aspose.svg.builder/paintbuilder/__init__ Initializes a new instance of the PaintBuilder class. ```APIDOC ## __init__ PaintBuilder ### Description Constructs a new instance of PaintBuilder. ### Method __init__ ### Endpoint N/A (Constructor) ### Parameters None ### Request Example ```python # This is a constructor, no direct request example ``` ### Response #### Success Response Initializes a PaintBuilder object. #### Response Example ```python # No direct response example for a constructor ``` ### See Also - module `aspose.svg.builder` - class `PaintBuilder` ``` -------------------------------- ### Get and Set Screen Size in Python Source: https://reference.aspose.com/svg/python-net/aspose.svg.services/ideviceinformationservice/screen_size Demonstrates how to get and set the screen size using the screen_size property in Python. This property is part of the IDeviceInformationService and requires the Size class for its value. ```python from aspose.svg.services import IDeviceInformationService from aspose.svg.drawing import Size # Assuming 'device_info_service' is an instance of IDeviceInformationService # Get screen size screen_size = device_info_service.screen_size print(f"Current screen size: {screen_size.width}x{screen_size.height}") # Set screen size new_size = Size(1920, 1080) device_info_service.screen_size = new_size print(f"New screen size set to: {device_info_service.screen_size.width}x{device_info_service.screen_size.height}") ```