Skip to content

ANcpLua/CreatePdf.NET

Repository files navigation

codecov .NET 10.NET 9.NET 8 NuGet License Docker

CreatePdf.NET

A simple, .NET library for PDF creation with text and bitmap rendering.

Usage

using CreatePdf.NET;

await Pdf.Create(Dye.Black)
    .AddText("Hello World")
    .SaveAsync("text.pdf");

await Pdf.Create()
    .AddPixelText("Hello World")
    .SaveAsync("pixel.pdf");

await Pdf.Create()
    .AddText("Hello World!", color: Dye.Blue, size: TextSize.Large)
    .AddLine()
    .SaveAndOpenAsync("opens-the-pdf.pdf");

await Pdf.Create(Dye.White)
    .AddPixelText("Hello World!", textColor: Dye.Red, backgroundColor: Dye.Brown, size: PixelTextSize.Medium)
    .AddLines(5)
    .SaveAndShowDirectoryAsync("opens-the-directory.pdf");

Installation

dotnet add package CreatePdf.NET

Requirements

  • .NET 8.0, 9.0, or 10.0 SDK

License

This project is licensed under the MIT License.

About

A simple .NET library for PDF creation with text and bitmap rendering, plus optional OCR functionality

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •