Ngx Print

screenshot of Ngx Print
angular

:printer: A plug n' play Angular (2++) library to print your stuff

Overview

If you're looking for a seamless way to implement printing capabilities in your Angular application, ngx-print is a fantastic solution. Designed for Angular 2 and beyond, this directive simplifies the process of printing HTML sections, allowing developers to integrate printing features without hassle. Building on the legacy of earlier AngularJS solutions, it brings an intuitive plug-and-play approach to modern frameworks.

With ngx-print, you can customize various aspects of the print functionality, ensuring that your printed outputs meet your specific needs. Whether you want to alter the title of the print window or style the printed content, this directive offers the flexibility to enhance the user experience.

Features

  • Easy Integration: Simply install the directive and import it into your application to get started with minimal setup.
  • Customizable Print Title: Tailor the title of the print window to suit the content being printed by using the printTitle attribute.
  • Styling Options: Control the style of your printed content by applying custom styles through the printStyle attribute or by linking to existing CSS.
  • Preview Functionality: Use the previewOnly attribute to show a print preview without opening the print dialog, enhancing user experience.
  • Handle Dialogs: Ensure smooth operations with the ability to manage print dialogs effectively, including options to close or keep open dialog windows.
  • New Tab Printing: Opt to open printed content in a new tab rather than a new window by setting the openNewTab property to true.
  • Event Subscription: Listen for the printCompleted event to execute functions post-printing, although note that distinguishing between different button clicks is not possible.
  • Service Usage: Utilize ngx-print as a service for added flexibility, allowing for even greater control over print operations within your components.

With these versatile features, ngx-print stands out as a robust option for developers looking to enhance their Angular applications with efficient printing capabilities.

angular
Angular

Angular is a TypeScript-based open-source framework by Google for building dynamic single-page applications and cross-platform mobile apps with MVC architecture and a rich set of features.

eslint
Eslint

ESLint is a linter for JavaScript that analyzes code to detect and report on potential problems and errors, as well as enforce consistent code style and best practices, helping developers to write cleaner, more maintainable code.

typescript
Typescript

TypeScript is a superset of JavaScript, providing optional static typing, classes, interfaces, and other features that help developers write more maintainable and scalable code. TypeScript's static typing system can catch errors at compile-time, making it easier to build and maintain large applications.