pub fn flatten(document: &PdfDocument) -> Result<Vec<u8>, XfaError>
Flatten an XFA document into static PDF bytes.