Browse our Products Toggle navigation
If so you can download any of the below versions for testing. The product will function as normal except for an evaluation limitation. At the time of purchase we provide a license file via email that will allow the product to work in its full capacity. If you would also like an evaluation license to test without any restrictions for 30 days, please follow the directions provided here.
If you experience errors, when you try to download a file, make sure your network policies (enforced by your company or ISP) allow downloading ZIP and/or MSI files.
Lors de la conversion du format HTML au format PNG, la liste ordonnée est maintenant générée et rendue parfaitement. Voici un exemple de code C# simple pour le convertisseur de fichiers HTML vers PNG :
using System.IO; using Aspose.Html; using Aspose.Html.Converters; using Aspose.Html.Rendering.Image; using Aspose.Html.Saving; ... // Prepare a path to a source HTML file string documentPath = Path.Combine(DataDir, "nature.html"); // Prepare a path for converted file saving string savePath = Path.Combine(OutputDir, "nature-output.png"); // Initialize an HTML document from the file using var document = new HTMLDocument(documentPath); // Initialize ImageSaveOptions var options = new ImageSaveOptions(ImageFormat.Png); // Convert HTML to PNG Converter.ConvertHTML(document, options, savePath);
Lors de la conversion HTML en PDF, notre API de traitement HTML est maintenant capable d’obtenir les polices du disque. Voici un exemple d’extrait de code C# du convertisseur HTML vers PDF :
using System.IO; using Aspose.Html.Converters; using Aspose.Html.Saving; ... // Invoke the ConvertHTML method to convert the HTML code to PDF Converter.ConvertHTML(@"<h1>Convert HTML to PDF!</h1>", ".", new PdfSaveOptions(), Path.Combine(OutputDir, "convert-with-single-line.pdf"));
À partir de cette version, la prise en charge du travail avec le format Markdown MD a été ajoutée. L’extrait de code C# suivant est un exemple de conversion standard de MD en HTML via l’API :
using System.IO; using Aspose.Html.IO; using Aspose.Html.Saving; using Aspose.Html.Converters; ... // Form source file path where `InputFolder` is the user source folder path var sourcePath = Path.Combine(InputFolder, "simple.md"); // Form result file path var resultPath = Path.Combine(OutputFolder, "result.html"); // Open source file as stream using (var sourceStream = File.OpenRead(sourcePath)) { // Initiate conversion process var document = Converter.ConvertMarkdown(sourceStream, string.Empty); // Save conversion result document.Save(resultPath); }
Pour une liste complète des fonctionnalités, améliorations et corrections de bogues de cette version, veuillez consulter Aspose.HTML for .NET 22.9 Release Notes.