Skip to content

unknown-page

All codes

  • Type: error
  • Kind: usage (the caller misused the API)

What happened

An op names a page the document doesn’t have.

Why

The page ID is stale or from another document.

How to fix

Use a PageId from this document.

Example

let other = Document::open_bytes(other_bytes, OpenOptions::default())?;
let id = other.page_info(0)?.id;
doc.apply(vec![Op::from(RotatePage::new(id, Rotation::Clockwise90))]); // unknown-page

Data fields

None.