DocuDune.Sdk
1.0.0-qa2
dotnet add package DocuDune.Sdk --version 1.0.0-qa2
NuGet\Install-Package DocuDune.Sdk -Version 1.0.0-qa2
<PackageReference Include="DocuDune.Sdk" Version="1.0.0-qa2" />
<PackageVersion Include="DocuDune.Sdk" Version="1.0.0-qa2" />
<PackageReference Include="DocuDune.Sdk" />
paket add DocuDune.Sdk --version 1.0.0-qa2
#r "nuget: DocuDune.Sdk, 1.0.0-qa2"
#:package DocuDune.Sdk@1.0.0-qa2
#addin nuget:?package=DocuDune.Sdk&version=1.0.0-qa2&prerelease
#tool nuget:?package=DocuDune.Sdk&version=1.0.0-qa2&prerelease
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
Links
- Product: https://docudune.com
- Terms: https://docudune.com/terms
This is a commercial package; see LICENSE.md for licensing terms.
| Product | Versions 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. |
-
net10.0
- ClosedXML (>= 0.105.0)
- DocSharp.Binary.Xls (>= 0.21.0)
- DocSharp.Docx (>= 0.20.0)
- DocumentFormat.OpenXml (>= 3.5.1)
- Markdig (>= 1.2.0)
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.0)
- Microsoft.Extensions.Configuration.Binder (>= 10.0.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.0)
- NSec.Cryptography (>= 26.4.0)
- Polly (>= 8.5.2)
- PuppeteerSharp (>= 25.1.0)
- Serilog (>= 4.2.0)
- Serilog.Sinks.File (>= 6.0.0)
- System.Security.Cryptography.ProtectedData (>= 10.0.8)
- XlsxToHtmlConverter (>= 2.3.0)
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|