A Blazor library for printing and saving files using native browser dialogs via JavaScript Interop and PrintJS.
Blazor Printing is a .NET library that enables printing and saving files from Blazor web applications using native browser dialog boxes. It solves the problem of implementing cross-browser printing functionality in Blazor by providing a simple service that bridges C# code with JavaScript printing capabilities through the PrintJS library.
Blazor developers who need to implement printing functionality in their web applications, particularly those working with PDF documents or requiring native browser print dialogs.
Developers choose Blazor Printing because it provides a straightforward, dependency-injected service that abstracts away the complexity of JavaScript Interop for printing, saving development time while ensuring cross-browser compatibility through the established PrintJS library.
Print PDF's using Blazor
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Uses the browser's native print and save dialogs for a familiar user experience, as highlighted in the key features, reducing the need for custom UI.
Easy dependency injection via IPrintingService and minimal code, demonstrated in the README with just a few lines to enable printing.
Leverages the established PrintJS library to ensure consistent printing across modern browsers, as noted in the features.
Follows a minimalistic approach with few dependencies, making it easy to integrate without bloating the project, per the philosophy section.
Primarily focuses on PDF printing via native dialogs, offering little control over advanced printing scenarios or non-PDF formats, as implied by the minimalistic design.
Relies heavily on PrintJS library, which may introduce versioning issues, bugs, or limitations outside the control of this Blazor wrapper.
Documentation is brief and partly outsourced to a blog post and external site, which could hinder troubleshooting or advanced usage beyond basic examples.