Function create_docx_with_checksum

Source
pub(crate) fn create_docx_with_checksum(
    extracted_output_path: &Path,
    metadata_json_value: &mut Value,
) -> Result<String, Error>
Expand description

ยงCreates a docx and returns a checksum

This creates a new docx file with the name parsed from the metadata filename.

It then writes the judgment name to the docx file and saves it to the output directory. If there is no judgment name, it uses the filename

Finally, it generates a sha256 checksum for the new file and returns it.