Skip to content

ReportHeader

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.

Field-Level

Fields

  • private Font bold;: A font setting for bold text.

Clone this wiki locally