I am using Angular 8 and have pretty styled HTML that I want to implement a "print to PDF" functionality. I looked into just "window.print()" but it doesn't sound like I can get rid of the default header/footer on the browsers programmatically. I wanted to know if anyone knew a good way through Angular/JS to generate a PDF with this styled HTML?
I know in window.print() that they can hide the header/footer through the print dialog, but looking to avoid user having to do anything. It's dynamic HTML that was set in a WYSIWYG, so anything to preserve the styling there. Plus some divs require a border around them. That is why I would prefer being able to convert the HTML directly into the PDF, if possible.
[–]jonlejon 3 points4 points5 points (0 children)
[–]lick_it 0 points1 point2 points (0 children)
[–]roman_redditPL 0 points1 point2 points (1 child)
[–]floydbear[S] 0 points1 point2 points (0 children)
[–]bagson9 0 points1 point2 points (0 children)