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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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.
- Parameters:
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
.
- Parameters:
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
.
- Parameters:
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.
- Parameters:
Product | Versions 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.
-
net8.0
- Eliassen.Documents.Abstractions (>= 0.1.85)
- HtmlToOpenXml.dll (>= 3.2.0)
- Microsoft.Extensions.Configuration.Abstractions (>= 8.0.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 8.0.1)
- Microsoft.Extensions.Logging.Abstractions (>= 8.0.1)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 8.0.0)
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.