Theoistic.PDF
0.9.2
dotnet add package Theoistic.PDF --version 0.9.2
NuGet\Install-Package Theoistic.PDF -Version 0.9.2
<PackageReference Include="Theoistic.PDF" Version="0.9.2" />
<PackageVersion Include="Theoistic.PDF" Version="0.9.2" />
<PackageReference Include="Theoistic.PDF" />
paket add Theoistic.PDF --version 0.9.2
#r "nuget: Theoistic.PDF, 0.9.2"
#:package Theoistic.PDF@0.9.2
#addin nuget:?package=Theoistic.PDF&version=0.9.2
#tool nuget:?package=Theoistic.PDF&version=0.9.2
Theoistic.PDF
Theoistic.PDF is a powerful library for .NET that provides capabilities to build PDF documents using HTML. With Theoistic.PDF, you can create complex PDF documents, It's perfect for generating invoices, reports, forms, and more!
Features
- Generate PDFs using HTML.
- Inject CSS for styling your PDFs.
- Comprehensive PDF settings like compression, size, orientation, and more.
- Asynchronous methods for building PDFs.
Installation
You can add Theoistic.PDF to your project via the NuGet package manager. Use the following command in your Package Manager Console:
Install-Package Theoistic.PDF
Configuration
To use Theoistic.PDF in your project, you need to configure the services and application builder typically in your Startup.cs
.
public void ConfigureServices(IServiceCollection services)
{
services.AddTheoisticPDF();
}
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
app.UseTheoisticPDF();
}
Style
If you need to have a specific style, I would recommend using a CSS file and injecting it using the InjectCSS method. the InjectCSS method takes a string as a parameter, this string is the (relative) path to the CSS file you want to inject. since we cannot use relative paths, its converted to absolute path and the link stylesheet is injected right above the closing head tag. Once the CSS has been injected with a full absolute path, it can reference relative images and fonts.
Contributing
Contributions to the Theoistic.PDF library are welcome! If you're interested in improving Theoistic.PDF
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. 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. |
-
net9.0
- Microsoft.AspNetCore.Http.Abstractions (>= 2.2.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.