Eliassen.HtmlToOpenXml 0.1.85

This package has a SemVer 2.0.0 package version: 0.1.85+2.
dotnet add package Eliassen.HtmlToOpenXml --version 0.1.85                
NuGet\Install-Package Eliassen.HtmlToOpenXml -Version 0.1.85                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Eliassen.HtmlToOpenXml" Version="0.1.85" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Eliassen.HtmlToOpenXml --version 0.1.85                
#r "nuget: Eliassen.HtmlToOpenXml, 0.1.85"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Eliassen.HtmlToOpenXml as a Cake Addin
#addin nuget:?package=Eliassen.HtmlToOpenXml&version=0.1.85

// Install Eliassen.HtmlToOpenXml as a Cake Tool
#tool nuget:?package=Eliassen.HtmlToOpenXml&version=0.1.85                

Eliassen.HtmlToOpenXml

A .NET library for converting HTML content to OpenXML format using WkHtmlToPdf.

Classes

WkHtmlToPdf.HtmlToDocxConversionHandler

Handler for converting HTML content to Docx format.

Fields
  • DESTINATIONS: Target Content Types
Properties
  • Destinations: Gets the supported content types for destination PDF files.
  • Sources: Gets the supported content types for source HTML files.
Methods
  • ConvertAsync(System.IO.Stream, System.String, System.IO.Stream, System.String): Converts HTML content from a source stream to Docx format and writes it to a destination stream.
    • Parameters:
      • source: The source stream containing the HTML content.
      • sourceContentType: The content type of the source.
      • destination: The destination stream to write the PDF content.
      • destinationContentType: The content type of the destination.
    • Return value: A task representing the asynchronous operation.
    • Exceptions:
      • System.NotSupportedException: Thrown if the source or destination content type is not supported.
  • SupportedDestination(System.String): Checks if the specified content type is supported for PDF conversion.
    • Parameters:
      • contentType: The content type to check.
    • Return value: true if the content type is supported; otherwise, false.
  • SupportedSource(System.String): Checks if the specified content type is supported as source HTML for PDF conversion.
    • Parameters:
      • contentType: The content type to check.
    • Return value: true if the content type is supported; otherwise, false.

HtmlToOpenXml.ServiceCollectionExtensions

Provides extension methods for configuring services related to WkHtmlToPdf.

Methods
  • TryAddHtmlToOpenXmlServices(Microsoft.Extensions.DependencyInjection.IServiceCollection): Configures services for WkHtmlToPdf.
    • Parameters:
      • services: The service collection to add the services to.
    • Return value: The modified service collection.
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Eliassen.HtmlToOpenXml:

Package Downloads
Eliassen.Common.Extensions

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.1.85 42 10/10/2024
0.1.84 40 10/10/2024