JSFiddle - React, Tailwind, and code Playground

HTML

<script src="http://mrrio.github.io/jsPDF/dist/jspdf.debug.js"></script>
<div id="customers">
    <table border="1" id="tab_customers" rc-table="sorting" class="rc-table-layout rc-hover rc-stripes ng-scope rc-table">
        <thead class="ng-scope">
            <tr>
                <!-- ngRepeat: column in $columns -->
                <th class="header  sortable" ng-init="template = column.headerTemplateURL(this)" ng-show="column.show(this)" ng-click="sortBy(column, $event)" ng-class="{
                'sortable': parse(column.sortable),
                'sort-asc': params.sorting()[parse(column.sortable)]=='asc',
                'sort-desc': params.sorting()[parse(column.sortable)]=='desc',
                'rc-toggle-cell-hidden': !rcToggled[$index].on &amp;&amp; rcToggled[$index].forced,
                'rc-toggle-cell-visible': rcToggled[$index].on &amp;&amp; rcToggled[$index].forced,
                'rc-cell-frozen': rcFrozen[$index],
                'rc-cell-frozen-last': $index===(rcFreezeColumns - 1),
                'rc-toggle-cell-frozen-hidden': !rcFrozen[$index] &amp;&amp; ($index&gt; rightVisibleColumn || $index &lt; leftVisibleColumn)
              }" ng-repeat="column in $columns">
                    <!-- ngIf: !template -->
                    <div ng-bind="parse(column.title)" ng-show="!template" ng-if="!template" class="ng-binding ng-scope">Customer</div>
                    <!-- end ngIf: !template -->
                    <!-- ngIf: template -->
                </th>
                <!-- end ngRepeat: column in $columns -->
                <th class="header  sortable" ng-init="template = column.headerTemplateURL(this)" ng-show="column.show(this)" ng-click="sortBy(column, $event)" ng-class="{
                'sortable': parse(column.sortable),
                'sort-asc': params.sorting()[parse(column.sortable)]=='asc',
                'sort-desc': params.sorting()[parse(column.sortable)]=='desc',
                'rc-toggle-cell-hidden':...

JavaScript

function demoFromHTML() {
    var pdf = new jsPDF('p', 'pt', 'letter');
    pdf.cellInitialize();
    pdf.setFontSize(10);
    $.each($('#customers tr'), function (i, row) {
        if ($(row).text().trim().length !== 0) {
            $.each($(row).find("td, th"), function (j, cell) {
                var txt = $(cell).text().trim() || " ";
                var width = (j == 4) ? 40 : 70; //make with column smaller
                if (j == 7) {
                    width = 120;
                }
                if(i==0)
                {
                    pdf.setFontStyle('bold');
                }
                else
                {
                    pdf.setFontStyle('normal');
                }   
                    pdf.cell(10, 10, width, 18, txt, i);             
            });
        }
    });

    pdf.save('sample-file.pdf');
}