Jelajahi Produk kami

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.

 

Aspose.html untuk .net 22.9

Unduh  Unduh 

Detail File

  • Unduhs:
  • 1
  • Ukuran file:
  • 16.98MB
  • Tanggal Ditambahkan:
  • 1/10/2022

Detail File

Improved Ordered List Rendering in PNG

While converting HTML to PNG format, the ordered list is now being generated and rendered perfectly. The following is a simple HTML to PNG file converter C# code sample:

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);

Fetch Fonts from Disk

During HTML to PDF Conversion, now our HTML processing API is able to get the fonts from the disk. This is a sample HTML to PDF converter C# code snippet:

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"));

Markdown (MD) Format Support

From this release the support to work with the Markdown MD format has been added. The following C# code snippet is a sample for standard MD to HTML conversion via 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);
      }

For a complete list of features, enhancements, and bug fixes in this release please visit, Aspose.HTML for .NET 22.9 Catatan rilis.

 Indonesia