We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I use this code read this file got the issue.
impl Template { pub fn new(path: String) -> errors::Result<Self> { let path = PathBuf::from(path); let mut buf: Vec<u8> = Vec::new(); File::open(path)?.read_to_end(&mut buf)?; let docx = docx_rs::read_docx(&buf)?; Ok(Self { docx }) } pub fn save(self, path: &str) { let path = std::path::Path::new(path); let file = std::fs::File::create(path).unwrap(); self.docx.build().pack(file).unwrap(); } } Template::new(path)?.save("./xxx.docx")
The 无法显示该图片 means cannot show this image.
无法显示该图片
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I use this code read this file got the issue.
screenshot
The
无法显示该图片
means cannot show this image.The text was updated successfully, but these errors were encountered: