Skip to main content

regenerate_appearances

Function regenerate_appearances 

Source
pub fn regenerate_appearances(
    doc: &mut Document,
) -> Result<WriteOutcome, WritebackError>
Expand description

Regenerate /AP /N for every filled text/choice field in the document.

For documents filled by tools that only wrote /V (+/NeedAppearances), this materialises trustworthy appearances so the document renders correctly in viewers — including this SDK’s own renderer — that do not honour /NeedAppearances. Fields whose value is not WinAnsi-representable are left for the viewer (counted in the outcome’s need_appearances_fallback).