assets_guardian.core.reporting.pdf.writer

Classes

AGPDF(*args,Β **kwargs)

Custom PDF class for Assets Guardian (Header, Footer, TOC).

PDFWriter([pdf_builders,Β rules_file_path,Β ...])

Concrete PDF audit report generation service.

class assets_guardian.core.reporting.pdf.writer.AGPDF(*args: Any, **kwargs: Any)[source]

Bases: FPDF

Custom PDF class for Assets Guardian (Header, Footer, TOC).

add_toc_entry(title: str) int[source]

Adds an entry to the TOC and returns a link.

apply_font(font_name: str) None[source]

Applies a font defined in the rules (title, subtitle, etc.).

draw_checkbox() None[source]

Draws a checkbox according to dynamic settings.

footer() None[source]

Document footer.

get_current_date() datetime[source]

Returns the current date/time according to the configured timezone.

header() None[source]

Document header.

insert_toc() None[source]

Populates the table of contents on the current page.

render_findings(findings: Iterable[Finding]) None[source]

Grouped rendering of findings by severity with indentation.

class assets_guardian.core.reporting.pdf.writer.PDFWriter(pdf_builders: list[IPDFBuilder] | None = None, rules_file_path: str | Path | None = None, author_fullname: str | None = None, author_email: str | None = None)[source]

Bases: object

Concrete PDF audit report generation service.