bokuweb / docx-rs

:memo: A .docx file writer with Rust/WebAssembly.
https://bokuweb.github.io/docx-rs/
MIT License
341 stars 59 forks source link

Changing orientation will now flip the size #620

Closed Jumes-1 closed 1 year ago

Jumes-1 commented 1 year ago

What does this change?

When changing the orientation of the document, it will now flip the document size.

References

Screenshots

If applicable, add screenshots to help explain your changes.

What can I check for bug fixes?

Not so much a bug, more of a feature change.

You'll find that we no longer have to provide a page size to match the orientation of the document

bokuweb commented 1 year ago

@Jumes-1

Thanks. This would be problematic because the width setting and the order in which orient is called would change the result.