Skip to content

PDF parity: add summary + severity cards to PDF report (#167) - #233

Merged
techmore merged 1 commit into
mainfrom
fix/pdf-summary-parity
Aug 22, 2026
Merged

PDF parity: add summary + severity cards to PDF report (#167)#233
techmore merged 1 commit into
mainfrom
fix/pdf-summary-parity

Conversation

@techmore

Copy link
Copy Markdown
Owner

Part of #167 / #160 (report rendering parity).

Change

The PDF report was missing the summary cards the web HTML has. Ported from nmap-modern.xsl into nmap-pdf-olive-legacy.xsl:

  • Network Scanned: target, IP count, start time, duration
  • Vulnerability Levels: CVSS severity breakdown (Critical >=9, High >=7, Medium >=4, Low)

These now appear on page 1 of client-facing PDFs so severity is visible at a glance instead of being buried in raw script output on later pages.

Verification

  • xsltproc validates against a real scan.xml
  • Full pipeline test: ran a complete scan + PDF generation through the app's Playwright converter; both sections render correctly in the output PDF (5 pages)
  • Known pre-existing issue (not addressed here): wide table columns can truncate at right page edge

Refs #167, #160

…167)

The PDF report lacked the summary sections the web HTML has: target/duration info and
the CVSS severity breakdown (Critical/High/Medium/Low counts). Ported both cards from
nmap-modern.xsl into the PDF stylesheet so client-facing PDFs surface severity at a
glance instead of burying CVEs in raw script output.

Verified end-to-end: ran a complete+PDF scan on 127.0.0.1/32, regenerated PDF via the
app's Playwright converter - both summary sections render, xsltproc validates.
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@techmore
techmore merged commit b6a5314 into main Aug 22, 2026
2 of 3 checks passed
@techmore
techmore deleted the fix/pdf-summary-parity branch August 22, 2026 23:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant