MCPcopy Create free account
hub / github.com/CScorza/IntelOSINT / _pdf_notes_page

Method _pdf_notes_page

IntelOSINT.py:18989–19004  ·  view source on GitHub ↗
(self, pdf, notes_title, notes)

Source from the content-addressed store, hash-verified

18987 pdf.cell(0, 6, self._latin1(subtitle), align="C", new_x=XPos.LMARGIN, new_y=YPos.NEXT)
18988
18989 def _pdf_notes_page(self, pdf, notes_title, notes):
18990 pdf.add_page()
18991 pdf.set_font("Helvetica", "B", 14)
18992 pdf.cell(0, 9, self._latin1(notes_title), new_x=XPos.LMARGIN, new_y=YPos.NEXT)
18993 pdf.set_font("Helvetica", "", 10)
18994 if isinstance(notes, (list, tuple)):
18995 for n in notes:
18996 self._mc(pdf, 6, f"- {n}")
18997 else:
18998 self._mc(pdf, 6, str(notes or "N/D"))
18999 pdf.ln(3)
19000 pdf.set_font("Helvetica", "B", 11)
19001 pdf.cell(0, 8, self._latin1("Avvertenze Tab"), new_x=XPos.LMARGIN, new_y=YPos.NEXT)
19002 pdf.set_font("Helvetica", "", 10)
19003 for w in self._tab_warnings():
19004 self._mc(pdf, 6, f"- {w}")
19005
19006 def _pdf_table(self, pdf, title, rows):
19007 pdf.ln(2)

Callers 4

tg_export_reportFunction · 0.95
generateMethod · 0.95
_build_face_reportFunction · 0.95
_build_media_reportFunction · 0.95

Calls 3

_latin1Method · 0.95
_mcMethod · 0.95
_tab_warningsMethod · 0.95

Tested by

no test coverage detected