如何使用 htmlconverter 将 table 转发到下一页时复制 table header
How replicate table header when a table is forwarded to the next page using htmlconverter
这个主题很少被问到创建 pdf 的问题。我的问题不同,因为我使用 htmlconverter 从 html 创建 pdf。
所以我的 html 有很多大 table,我想在 table 转发到下一个时复制 table 的 header页。
可以用 htmlconverter 来实现吗???
提前致谢
科尔6k
如果 Headers 在 <table>
的 <thead>
内,它们会自动重复。例如:
<table width="100%">
<thead>
<tr>
<th>name</th>
<th>abbr</th>
<th>capital</th>
<th>most populous city</th>
<th>population</th>
<th>square miles</th>
<th>time zone 1</th>
<th>time zone 2</th>
<th>dst</th>
</tr>
</thead>
<tbody>
<tr>
<td>ALABAMA</td>
<td>AL</td>
<td>Montgomery</td>
<td>Birmingham</td>
<td>4,708,708</td>
<td>52,423</td>
<td>CST (UTC-6)</td>
<td>EST (UTC-5)</td>
<td>YES</td>
</tr>
<tr>
<td>ALASKA</td>
<td>AK</td>
<td>Juneau</td>
<td>Anchorage</td>
<td>698,473</td>
<td>656,425</td>
<td>AKST (UTC-09) </td>
<td>HST (UTC-10) </td>
<td>YES</td>
</tr>
...
</tbody>
</table>
这个主题很少被问到创建 pdf 的问题。我的问题不同,因为我使用 htmlconverter 从 html 创建 pdf。 所以我的 html 有很多大 table,我想在 table 转发到下一个时复制 table 的 header页。 可以用 htmlconverter 来实现吗??? 提前致谢 科尔6k
Headers 在 <table>
的 <thead>
内,它们会自动重复。例如:
<table width="100%">
<thead>
<tr>
<th>name</th>
<th>abbr</th>
<th>capital</th>
<th>most populous city</th>
<th>population</th>
<th>square miles</th>
<th>time zone 1</th>
<th>time zone 2</th>
<th>dst</th>
</tr>
</thead>
<tbody>
<tr>
<td>ALABAMA</td>
<td>AL</td>
<td>Montgomery</td>
<td>Birmingham</td>
<td>4,708,708</td>
<td>52,423</td>
<td>CST (UTC-6)</td>
<td>EST (UTC-5)</td>
<td>YES</td>
</tr>
<tr>
<td>ALASKA</td>
<td>AK</td>
<td>Juneau</td>
<td>Anchorage</td>
<td>698,473</td>
<td>656,425</td>
<td>AKST (UTC-09) </td>
<td>HST (UTC-10) </td>
<td>YES</td>
</tr>
...
</tbody>
</table>