Publishing files

DVI page backpointer index

Index classic DVI pages and check their backward links and declared page count.

Your inputs

Start with an example

Your inputs stay in your browser.

Your result

Example result

How it works

Walk id-2 DVI instructions using their operand lengths, skipping font names and special payloads. Check bop/eop boundaries, stack framing and pre/postamble pointers.

The sample contains one page whose bop starts at byte 15 and points to -1. Its postamble states one page.

Limits

Uncompressed classic DVI id 2 up to 1 MB and 10000 pages. XDV and extended variants are rejected. Font metrics, glyph availability, drawing positions and special commands are not evaluated or executed; this is not a rendered-page or complete DVI validator.