/// Create a DocxTemplate from a .docx file on disk.
Create a DocxTemplate from a .docx file on disk.
Create a DocxTemplate from a . docx file on disk .
pub fn from_file(file_name: &PathBuf) -> Result<Self, TextkitDocxError> {
        let mut fh = File::open(file_name)?;
        let mut buf: Vec<u8> = Vec::new();
        fh.read_to_end(&mut buf)?;
        DocxTemplate::from_bytes(&buf)
    }
pub fn from_file ( file_name : & PathBuf ) -> Result < Self , TextkitDocxError > { let mut fh = File :: open ( file_name ) ? ; let mut buf : Vec < u8 > = Vec :: new ( ) ; fh . read_to_end ( & mut buf ) ? ; DocxTemplate :: from_bytes ( & buf ) }
Create a DocxTemplate from a .docx file on disk.
Create a DocxTemplate from a . docx file on disk .
file_name
&PathBuf