How to Export Ag-Grid to PDF Format in Angular 2?
问题 I'm working on AG-GRID in Angular 2. I have found that there is an option only to export the grid into Excel. How can I export the grid into PDF? 回答1: Exporting to pdf whilst keeping the styling is a pretty tricky task and there are a few options out there to do what you desire. html2pdf: This converts the html to canvas then from canvas to an image and then from image to pdf. The problem is that this implementation tends to produce a low resolution image. jsPdf: This library is a js