# HTML Quality Probe

These checks are diagnostic and non-gating. A `needs-review` status means the generated artifacts found a likely conversion-quality issue, not that artifact generation failed.

- Status: `needs-review`
- Source PDF: [../source.pdf](../source.pdf)
- Generated HTML: [../semantic-continuous/index.html](../semantic-continuous/index.html)
- Sample notes: Single-page park map with exceptionally dense image placements, labels, and vector geometry. Categories: park-map, complex-layout, image-heavy, vector-heavy. Canonical source: https://www.nps.gov/pore/planyourvisit/parkbrochure.htm
- Text reference: `pdfbox-net-run-fallback`
- Pages analyzed: 1

## Page Summary

| Page | Status | Source words | HTML words | Token coverage | Long HTML tokens | Foreground delta | Severe color delta | Text/object overlaps |
| --- | --- | ---: | ---: | ---: | ---: | ---: | ---: | ---: |
| 1 | `needs-review` | 1375 | 1465 | 0.96 | 0 | 0 | 0.017 | 1566 |

## Issue Categories

| Category | Status | Evidence |
| --- | --- | --- |
| Text reconstruction and word boundaries | `passed` | All analyzed pages passed; lowest token coverage is 0.96 on page 1. |
| Page geometry and text-run structure | `passed` | Page dimensions and text-run counts passed; max run-count delta is 0. |
| Text wrapping around images and vector objects | `needs-review` | 564 text/image overlap(s) and 1002 text/vector overlap(s) were found. |
| Visual foreground parity | `passed` | Max foreground delta is 0; max source-only foreground ratio is 0; max HTML-only foreground ratio is 0. |
| Visual color parity | `passed` | Max mean CIE Lab color delta is 1.554; max severe color-delta ratio is 0.017; minimum compared page-pixel ratio is 0.981. |
| Source fixture expectations (manual review) | `skipped` | The source PDF does not contain recognizable self-describing fixture expectations. |
| Probe setup and tool availability | `passed` | The browser probe and available renderers ran. |

## Current Limitations

- Some image-backed content still behaves like fixed-position objects; text may collide with image regions.
- Large vector overlays are not semantically attached to nearby content; review whether these are decorative backgrounds, table rules, clipping masks, or true text/object collisions.

## Findings

- Page 1, `text-image-overlap`: 564 text run(s) overlap rendered image boxes.
- Page 1, `text-vector-overlap`: 1002 text run(s) overlap large rendered vector boxes.

## Artifacts

- [page-1-html.png](page-1-html.png)
- [page-1-source.png](page-1-source.png)
- [page-1-diff.png](page-1-diff.png)
- [page-1-color-heatmap.png](page-1-color-heatmap.png)
- [page-1-visual-report.html](page-1-visual-report.html)
