• Stars
    star
    102
  • Rank 335,584 (Top 7 %)
  • Language
    C#
  • License
    MIT License
  • Created about 4 years ago
  • Updated 9 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Print PDF's using Blazor

Blazor Printing

Print and Save files in Blazor using the native dialog box using JavaScript Interop and PrintJS.

Nuget (with prereleases)

The result

Screenshot

The blogpost

You can read more about the service in this blog post.

Documentation

Documentation and examples can be found here

Installing

You can install from NuGet using the following command:

Install-Package Append.Blazor.Printing

Setup

  1. Inject the IPrintingService in program.cs
builder.Services.AddScoped<IPrintingService, PrintingService>();
  1. Use the Service
@using Append.Blazor.Printing
@inject IPrintingService PrintingService
<button @onclick="@(()=> PrintingService.Print("docs/sample.pdf"))">
 Print PDF
</button>