Description
ngx-print is an Angular directive that prints one section of a page. You tag the HTML you want to print with an id, then link that id to the directive from a button, and the directive opens the print dialog for that section. It was inspired by the AngularJS ngPrint directive. The README has a table that matches each release to an Angular version, from Angular 7 through 22, and starting with version 20 the major version follows the Angular version. You can set a custom print title. That title also becomes the suggested file name when someone saves the page as a PDF from the print dialog. The window, tab and iframe print methods are supported, and the printing stylesheet can be customized. A live demo is linked from the README. The code is in a public GitHub repository, and the author welcomes contributions. It suits Angular apps that need a print button for invoices, reports or receipts.…
Highlights
- Print a page section with a directive
- Custom print title
- Window, tab and iframe print methods
- Customizable printing stylesheet
- Angular 7 to 22 support
Ratings & Reviews
No ratings yet
Be the first to rate ngx-print.
People also visit
ngx-print FAQ
What does ngx-print do?
It is an Angular directive that prints a chosen part of the page, so a button can print just that section.
Which Angular versions does it support?
The README's table runs from Angular 7 to 22. Version 20 and later match the Angular version number.
Can I control the file name when saving as PDF?
Yes. The printTitle option is used as the suggested file name when a user chooses Save as PDF.
Is there a demo?
Yes. The README links a live demo.
What are the best ngx-print alternatives?
Popular alternatives to ngx-print include ngx-extended-pdf-viewer, ngx-drag-scroll and ng2-pdfjs-viewer. See all ngx-print alternatives




















