show / hide menu

SetPDFFooter 

This function is used to configure the Footer section for the PDF being generated using the ConvertToPDF rule. It allows you to define the content, height, background color, and a top line for the footer. 

Syntax: 

SetPDFFooter(Type, Value, Height, BackgroundColor(Optional), EnableTopLine(Optional), TopLineColor(Optional)) 

Where: 

  • Type – Specifies the source of the footer content.
    Values: “File” or “HTML Content” 
  • Value – If the Type is File, provide the path to the file.
    If the Type is HTML Content, provide the inline HTML string. 
  • Height – Height of the footer in pixels. 
  • BackgroundColor (Optional) – Background color of the footer (e.g., “#ffffff”). 
  • EnableTopLine (Optional) – “true” or “false” to show or hide the top line in the footer. 
  • TopLineColor (Optional) – Color of the top line (e.g., “#333333”). 

Examples: 

SetPDFFooter(“HTML Content”, “<footer><small>© Your Company</small></footer>”, 50) 

This sets a 50-pixel tall footer using inline HTML content. 

SetPDFFooter(“File”, “ClientFiles/Documents/HTML/Footer.html”, 60, “#eeeeee”, “true”, “#999999”) 

This sets the footer using file with background color, top line, and top line color.