Export page as pdf

hi guys,
i need a help,
i want to make whole html page/particular did/ table to pdf. any idea how to do that.
i have attendance table in html i want to export it(table or particular div or whole page) as pdf.
here is my code and i want to export this html to pdf


<ion-content >
    <p style="font-weight:bold; text-align:center"> {{user?.EmployeeName}}</p>

    <tr *ngFor="let item of attendanceList">
      <td>{{item.AttendanceDate| date: "dd"}}</td>

Check this.