pub fn save_docx_bytes( template_bytes: &[u8], output_path: &Path, replacements: &[(&str, &str)], ) -> Result<(), Box<dyn Error>>
Like build_docx_bytes, but writes the result directly to a file at output_path.
build_docx_bytes
output_path