BCM BIA/Plan template body text

jhammond944
Tera Contributor

In the BIA template, I have a footer image.  However, regardless of what size I make the image or page margins, the script body text ends up being partially overlaid by the footer on some, but not all pages.  Any ideas on how to modify the script so that the footer is always clear of the body text?

1 REPLY 1

Vishal Jaswal
Giga Sage

Hello @jhammond944 

If your BIA PDF template record (table: sn_doc_html_template), please use below Header and Page settings as these are working fine for me:

vishal_jaswal_2-1741709477742.png

 



vishal_jaswal_0-1741709160517.png

vishal_jaswal_1-1741709176563.png



Below is my oob getBIAStyles document template script (table: sn_doc_template_script)

(function runTemplateScript(target /*GlideRecord for target task*/ ) {

    var styleTagOpen = "<style>";

    var detailSectionTableClass = '.detail-section-table th, .detail-section-table td{text-align: left; width:25%; border:none;}';

    var defaultTableStyles = "table {width:100%; border:1px #9AA4A5; border-collapse: collapse; border-color:black; color: black;}" +
        "th, td { text-align: left;}";

    var subHeading = ".sub-heading {color: #292e2f; font-size: 14pt;}";

    var bigHeading = ".big-heading {color: #292e2f; font-size: 18pt; padding:0px; margin:0;font-weight:normal;}";

    var smallHeading = ".small-heading {color: #292e2f; font-size: 16pt; font-weight:bold;}";

    var extraSmallHeading = ".xs-heading {color: #292e2f; font-size: 12pt; font-weight:bold;}";

    var quarterCellsStyle = ".quarter-cells-style td{text-align: left; width:25%; border-left:none;}" +
        ".quarter-cells-style th {text-align: left; width:30%; border-right:none;}";

    var styleTagClose = "</style>";

    var styles = styleTagOpen +
        defaultTableStyles + subHeading + detailSectionTableClass + quarterCellsStyle +
        bigHeading + extraSmallHeading + smallHeading + styleTagClose;

    return styles;

})(target);


Hope that helps!

 


Hope that helps!