function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Brandon COFFINBrandon COFFIN 

How to use min-height on tables with S-DOCS ?

Hello,
I will try to explain my problem as clearly as possible.
I must create a template for quotes that puts the products in a table but I would like that if the table is not full in height, define a min-height to cover the whole page.
It works fine in HTML put in PDF, I have some problems with the table height.

The code and images might be more clear :
<!-- ******************** START RELATED LIST SECTION UNIQUEID:42********************-->
<style type="text/css">table.table42 {border-collapse:collapse; border-spacing:0px; font-family:Arial,Helvetica,sans-serif; font-size:10px; width:100%; sd:repeatheader;border-spacing:0;border-width: 0;}
.table42header {padding: 5px 10px; border-bottom: 1px solid #808080; border-width: 1px 1px 1px 0;}
.table42col0 {border-right: 1px dotted #808080; border-width: 0 1px 1px 1px;}
.table42col1 {border-right: 1px dotted #808080; border-width: 0 1px 1px 0;}
.table42col2 {border-right: 1px dotted #808080; border-width: 0 1px 1px 0;}
.table42col3 {border-right: 1px dotted #808080; border-width: 0 1px 1px 0;}
.table42col4 {border-right: 1px dotted #808080; text-align: right; border-width: 0 1px 1px 0;}
.table42col5 {border-right: 1px dotted #808080; text-align: right; border-width: 0 1px 1px 0;}
.table42col6 {border-right: 1px dotted #808080; text-align: right; border-width: 0 1px 1px 0;}
.table42col7 {text-align: right; border-width: 0 1px 1px 0;}
</style>
<div style="border: 1px solid #808080;">
<table class="table42" style="min-height: 17.5cm;">
<thead>
<tr>
<th class="table42header" style="border-width: 1px 1px 1px 0;">N&deg; Lig</th>
<th class="table42header">Type r&eacute;ponse</th>
<th class="table42header">R&eacute;f&eacute;rence client</th>
<th class="table42header">Code Article / D&eacute;signation / Description / Marquage</th>
<th class="table42header">Qt&eacute;</th>
<th class="table42header">Masse total Ligne</th>
<th class="table42header">Prix net unitaire HT</th>
<th class="table42header">Montant Net HT Ligne</th>
</tr>
</thead>
<tbody style="vertical-align: bottom;"><!--{{!
<lineitems><class>table42</class>
<listname>emea_adjudications_product_related_list__r</listname>
<column>name</column>
<column>proposal_type__c</column>
<column>customer_product_ref__c</column>
<column>Emea_Product_proposal__r.Emea_Product__r.name</column>
<column>quantity__c</column>
<column>total_weight__c</column>
<column>price__c</column>
<column>total_turnover__c</column>
</lineitems>
}}--></p>
<tr>
<td class="table42col0">&nbsp;</td>
<td class="table42col1">&nbsp;</td>
<td class="table42col2">&nbsp;</td>
<td class="table42col3">&nbsp;</td>
<td class="table42col4">&nbsp;</td>
<td class="table42col5">&nbsp;</td>
<td class="table42col6">&nbsp;</td>
<td class="table42col7">&nbsp;</td>
</tr>
</tbody>
<tfoot>
<tr>
<td colspan="8">
<table style="width: 100%;">
<thead>
<tr>
<th>Masse Totale (kg)</th>
<th>Net HT (EUR)</th>
<th>TVA 21% (EUR)</th>
<th>TTC (EUR)</th>
</tr>
</thead>
<tbody>
<tr>
<td>{{!Opportunity.ajd_total_weight_kg__c #,###.##}}</td>
<td>{{!Opportunity.net_ht_eur__c #,###.##}}</td>
<td>{{!Opportunity.adj_tva_21__c #,###.##}}</td>
<td>{{!Opportunity.adj_to_ttc__c #,###.##}}</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tfoot>
</table>
</div>
<!-- ******************** END RELATED LIST SECTION UNIQUEID:42********************-->

Expected :
Expected

Actual result :
Actual result

Thanks for your answers