我有一个现有的表,我想用分页导出到 pdf 知道如何做吗?我看到了这个
https://www.telerik.com/kendo-angular-ui/components/grid/export/pdf-export/
但看起来这是试用期
我也可以在现有表上使用它还是需要再次构建表
这是我当前的代码
<div class="p-grid">
<div class="p-col">
<div >
<p-table #table [value]="dashboardDisplay" [rows]="15" [paginator]="true" [responsive]="true" autoLayout ="true">
<ng-template pTemplate="header">
<tr>
<th>feedback #</th>
<th>Creation date</th>
<th>Phone number</th>
<th>UMN</th>
<th>First name</th>
<th>Middle name</th>
<th>Last name</th>
<th>Category name</th>
<th>Question</th>
<th>Answer</th>
</tr>
</ng-template>
<ng-template pTemplate="body" let-dashboardDisplay >
<tr *ngIf="dashboardDisplay.categoryId==categoryId || categoryId ==0 ">
<td>{{dashboardDisplay.surveyId}}</td>
<td>{{dashboardDisplay.creationDate | date}} </td>
<td>{{dashboardDisplay.phoneNumber}}</td>
<td>{{dashboardDisplay.umn}}</td>
<td>{{dashboardDisplay.firstName}}</td>
<td>{{dashboardDisplay.middleName}}</td>
<td>{{dashboardDisplay.lastName}}</td>
<td>{{dashboardDisplay.categoryName }}</td>
<td>{{dashboardDisplay.question}}</td>
<td>{{dashboardDisplay.answer}}</td>
</tr>
</ng-template>
</p-table>
</div>
</div>
</div>
谢谢您的帮助