#[derive(Debug, thiserror::Error)]
pub enum AnnotBuildError {
#[error("page {0} out of range (document has {1} pages)")]
PageOutOfRange(u32, usize),
#[error("failed to encode appearance stream: {0}")]
AppearanceEncode(String),
#[error("invalid annotation rectangle: width or height is zero")]
InvalidRect,
#[error("failed to write annotation to page dictionary")]
PageMutationFailed,
}