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

Method _pdf_cover

IntelOSINT.py:18968–18987  ·  view source on GitHub ↗
(self, pdf, title, subtitle="CScorza Report")

Source from the content-addressed store, hash-verified

18966 pdf.multi_cell(0, h, self._latin1(text))
18967
18968 def _pdf_cover(self, pdf, title, subtitle="CScorza Report"):
18969 pdf.add_page()
18970 pdf.set_auto_page_break(auto=True, margin=12)
18971 logo_path = Path(__file__).resolve().parent / "Logo.gif"
18972 if not logo_path.exists():
18973 logo_path = Path(__file__).resolve().parent / "logo.gif"
18974 if logo_path.exists():
18975 try:
18976 pdf.image(str(logo_path), x=(pdf.w - 44) / 2, y=30, w=44)
18977 except Exception:
18978 pass
18979 pdf.set_y(86)
18980 pdf.set_font("Helvetica", "B", 18)
18981 pdf.cell(0, 10, self._latin1("CScorza Report"), align="C", new_x=XPos.LMARGIN, new_y=YPos.NEXT)
18982 pdf.set_font("Helvetica", "", 12)
18983 pdf.cell(0, 8, self._latin1(f"Versione tool: v{APP_VERSION}"), align="C", new_x=XPos.LMARGIN, new_y=YPos.NEXT)
18984 pdf.cell(0, 8, self._latin1(datetime.now(timezone.utc).strftime("%Y-%m-%d %H:%M:%S UTC")), align="C", new_x=XPos.LMARGIN, new_y=YPos.NEXT)
18985 pdf.ln(6)
18986 pdf.set_font("Helvetica", "", 10)
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()

Callers 4

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

Calls 1

_latin1Method · 0.95

Tested by

no test coverage detected