pub fn emit_debug(
graph: &PageGraph,
report: &Report,
metadata: &PdfMetadata,
out: &Path,
) -> Result<Vec<Diagnostic>>Expand description
Emit a PDF with visible layout geometry from the graph’s matching report.
Each page retains its original content and coordinates. A 36-point strip
above the original page holds the legend, outside the document’s bounds.
The debug canvas is at least 420 points wide to keep the legend legible.
Use the graph and report from the same LayoutEngine::layout_with_debug
result. The ordinary emit output is unaffected.
§Errors
Returns MOS0051 for mismatched page geometry, or the same font and I/O
errors as emit.