- PDF and DjVu extractors separate pages with \f; compare() splits each document
into pages and renders a per-page diff. The existing toolbar page nav (< 1 / N >)
drives it through the diff controller's new setPage, so multi-page PDFs and DjVu
compare page-by-page. Single-page formats (docx/doc/rtf/odf/txt/...) are
unchanged — they render as a continuous flow with no page breaks to split on.
- Move the compare view-mode dropdown from the middle to the right, just left of
the language selector.
- Add a 2-page sample PDF pair (samples/manual-v{1,2}.pdf) for testing.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- Move the side-by-side / unified / inline switcher out of the diff into a
dropdown in the main toolbar, shown only in compare mode where it swaps in for
the inert zoom controls. Works in the demo and the embed (both share the
toolbar) — wired to the diff controller's setMode; the in-diff toggle is gone.
- Center the page-number digit in its box with line-height (dropping the 1px
nudge); the box is flex-centered, so it lines up with '/ N' too.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>