Scenario:
I used selectpdf to convert my MVC view page to PDF. The view contains charts and tables. Export also working as expected except as table width
Problem:
I am having one table created dynamically. I used column width in percentage to set based on view. Here when i export to pdf, the width percentage didn't updated in the pdf.
View Code:
                                <table id="tblData" class="table table-condensed">
                                <thead>
                                    <tr class="active">
                                        <th width="50%">Name</th>
                                        <th width="50%">Count</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    @foreach (var item in MyModel)
                                    {
                                        <tr>
                                            <td width="50%">@item.Name</td>
                                            <td width="50%">@item.Count</td>
                                        </tr>
                                    }
                                </tbody>
                                <tfoot>
                                    <tr class="active">
                                        <th width="50%">Grant Total</th>
                                        <th width="50%">@totalCount</th>
                                    </tr>
                                </tfoot>
                            </table>
If i change that percentage to pixel values, PDF get correctly. So anyway to give width in percentage to update in PDF
 
    