DocuDune.Sdk 1.0.0

The owner has unlisted this package. This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package DocuDune.Sdk --version 1.0.0
                    
NuGet\Install-Package DocuDune.Sdk -Version 1.0.0
                    
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="DocuDune.Sdk" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DocuDune.Sdk" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="DocuDune.Sdk" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add DocuDune.Sdk --version 1.0.0
                    
#r "nuget: DocuDune.Sdk, 1.0.0"
                    
#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.
#:package DocuDune.Sdk@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=DocuDune.Sdk&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=DocuDune.Sdk&version=1.0.0
                    
Install as a Cake Tool

DocuDune.Sdk

Commercial SDK for converting Markdown and raw Office documents to company-branded PDFs entirely on-premise. No document data ever leaves your infrastructure.

Install

dotnet add package DocuDune.Sdk

Usage

Plain usage

using DocuDune.NuGet;

var client = new DocuDuneClient();
client.SetCredentials("client-id", "client-secret");

var result = await client.ConvertFileAsync("input.docx", "output.pdf");
if (!result.Success)
    Console.Error.WriteLine(result.ErrorMessage);

Client credentials are created in your DocuDune account profile (API Clients section). For interactive console/desktop apps, sign in through the browser instead with await client.LoginWithBrowserAsync().

Dependency injection

For ASP.NET Core, Aspire, or any app built on Microsoft.Extensions. DependencyInjection, register the client once at startup and depend on IDocuDuneClient everywhere else:

// Program.cs / Startup
services.AddDocuDuneClient(options =>
{
    options.ClientId = configuration["DocuDune:ClientId"];
    options.ClientSecret = configuration["DocuDune:ClientSecret"];
});
// Or bind an entire configuration section directly
services.AddDocuDuneClient(configuration.GetSection("DocuDune"));
// Anywhere else in your app
public class ReportService(IDocuDuneClient docuDune)
{
    public Task<ConvertFileResult> RenderAsync(string input, string output)
        => docuDune.ConvertFileAsync(input, output);
}

Calling services.AddDocuDuneClient() with no arguments falls back to the same credential resolution the CLI uses: the DOCUDUNE_CLIENT_ID / DOCUDUNE_CLIENT_SECRET environment variables, or ~/.docudune/credentials.json from a prior docudune login.

Features

  • Formats: Markdown, HTML, DOC, DOCX, XLS, XLSX
  • Company branding: logo, colors, cover page, NDA footer
  • Fully on-premise conversion engine; only license exchange and authentication require network access

This is a commercial package; see LICENSE.md for licensing terms.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated