show / hide menu

SetPDFHeader 

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: 

  • Type – Specifies the source of the header 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 header in pixels. 
  • BackgroundColor (Optional) – Background color of the header (e.g., “#ffffff”). 
  • EnableBottomLine (Optional) – “true” or “false” to show or hide the bottom line in the header. 
  • BottomLineColor (Optional) – Color of the bottom line (e.g., “#000000”). 

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.