This function is used to configure the Header section for the PDF being generated using the ConvertToPDF rule. It allows you to define the content, height, background color, and a bottom line for the header.
Syntax:
SetPDFHeader(Type, Value, Height, BackgroundColor(Optional), EnableBottomLine(Optional), BottomLineColor(Optional))
Where:
Examples:
SetPDFHeader(“HTML Content”, “<h1>Report Title</h1>”, 60)
This sets a 60-pixel tall header with inline HTML content.
SetPDFHeader(“File”, “ClientFiles/Documents/HTML/Header.html”, 80, “#f0f0f0”, “true”, “#000000”)
This sets the header using a file, with background color, bottom line, and line color defined.