Skip to main content

validate_document

Function validate_document 

Source
pub fn validate_document(
    doc: &ImageDocument,
    limits: ImageLimits,
) -> Result<usize, ImageError>
Expand description

Validate the complete source, including hidden layers, before writing output. Returns the exact number of document pixels required in the caller buffer.