You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
100levelz edited this page Nov 22, 2023
·
3 revisions
Overview
The ReportHeader class manages the creation of the header section in PDF reports, providing visual elements such as the university logo, university name, and student information.
Class-Level
Default Constructor
public ReportHeader(): This constructor creates a new ReportHeader instance with font settings for bold text.
Method-Level
Methods
public void addHeader(Document document): Orchestrates the addition of the header section to the specified Document, including the logo, university name, and student information specified by the following methods respectively:
private void addLogo(Document document): Includes the university logo in the specified Document parameter.
private void addUniversityName(Document document): Includes the university name in the specified Document.
public void addStudentInfo(Document document: Includes student information, such as student ID, assignment number, and a label, in the specified Document.