Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
Aspose.SVG for Python via .NET 是开发人员可以在购买前试用的软件。通过 .NET 的 Aspose.SVG for Python 免费评估版可以从 Aspose 网站的下载部分下载: 下载 Aspose.SVG Python 库。
Aspose.SVG 的评估版本与购买的版本相同。通过合并几行代码来应用许可证,试用版只需转换为许可版本即可。评估版提供除以下功能之外的所有功能:
如果您想在没有评估限制的情况下尝试 Aspose.SVG,请请求 30 天的临时许可证。更多信息请参阅 How to get a Temporary License?。
可以从文件或流对象加载许可证。 Aspose.SVG for Python via .NET 将尝试在以下位置查找许可证: 1.显式路径。
许可证文件名不限于Aspose.SVG.Python.NET.lic。您可以随意重命名它,并在应用程序中应用许可证时使用该名称。
应用许可证的最简单方法是将许可证文件放在与 Aspose.SVG.dll 文件相同的文件夹中,并仅指定文件名而不指定路径。您可以创建一个license文件夹并将许可证文件放置在其中。然后,set_license()方法获取许可证文件的路径。
例子:
1# Initialize license object
2lic = License()
3
4# Set license from file
5lic.set_license("./license/Aspose.SVG.Python.via.NET.lic")
6
7print("License set successfully.")Aspose.SVG for Python via .NET API 允许开发人员应用计量许可证。 这是一种新的许可机制。新的发牌机制将与现有的发牌方法同时使用。想要根据 API 功能的使用情况进行计费的客户可以使用计量许可。有关更多详细信息,请参阅 Metered Licensing FAQ 部分。
完成获取此类许可证的所有必要步骤后,您将收到密钥,而不是许可证文件。添加了新的类 Metered 以应用计量密钥。此代码示例演示如何设置计量公钥和私钥:
1# Create an instance of the Metered class
2metered = Metered()
3
4# Set the public and private keys for metered licensing
5public_key = "your-public-key"
6private_key = "your-private-key"
7
8# Apply the metered license
9metered.set_metered_key(public_key, private_key)在应用程序中使用多个 Aspose 产品(例如 Aspose.SVG 和 Aspose.HTML)时,请考虑以下有用的指南:
Aspose.Total.lic),也请确保为集成到应用程序中的每个 Aspose 产品单独调用 set_license()。aspose.svg.License,而 Aspose.HTML 使用aspose.html.License类。使用完全限定的类名有助于避免哪个许可证对应哪个产品的歧义。Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.