Skip to content
New issue

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

Support for images in headers / footers #38

Open
thomassimmer opened this issue Dec 18, 2024 · 0 comments
Open

Support for images in headers / footers #38

thomassimmer opened this issue Dec 18, 2024 · 0 comments

Comments

@thomassimmer
Copy link

thomassimmer commented Dec 18, 2024

Hello,

I have this piece of code :

    let path = format!("{}/src/assets/WordTemplate.docx", env!("CARGO_MANIFEST_DIR"));
    let docx = DocxFile::from_file(path).unwrap();
    let mut docx: Docx<'_> = docx.parse().unwrap();
    let mut buffer = Cursor::new(Vec::new());
    docx.write(&mut buffer).unwrap();

This compiles and runs, but generates a corrupted file for templates containing images in headers or footers. Do you plan to support that ?

This one for instance : WordTemplate.docx

Thank you anyway, the crate is already great !

Thomas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant