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

Is there any progress on Textbox? #762

Open
oonxt opened this issue Oct 17, 2024 · 3 comments
Open

Is there any progress on Textbox? #762

oonxt opened this issue Oct 17, 2024 · 3 comments

Comments

@oonxt
Copy link

oonxt commented Oct 17, 2024

I noticed this:

Some(DrawingData::TextBox(_t)) => unimplemented!("TODO: Support textBox writer"),

And impl for Textbox is commented.

Is there a plan to support this feature?

@xamgore
Copy link
Contributor

xamgore commented Oct 21, 2024

Hey, mind a PR? If you are motivated enough, it would be great contribution!

@oonxt
Copy link
Author

oonxt commented Oct 22, 2024

I have very little knowledge about Office Open XML. And I found something on this website: http://officeopenxml.com/drwSp-textbox.php

Should I refer to this specification to implement it?

@xamgore
Copy link
Contributor

xamgore commented Oct 22, 2024

The site is not an exhaustive explication of the OOXML specification. I cover what I believe a majority of those working in English-speaking countries would need to know, but certainly there is much that is omitted. This is just a slice.

The official website provides outdated 4-th edition specs, Github has 5-th. Reading PDF files is uncomfortable for me, I would stick with another website:

The repository contains text_box.rs with some fields already defined. If the struct looks complete enough for you, check the BuildXML trait implementation, then reuse it in the src/documents/elements/drawing.rs:147. One unit test, one integration test, and I think that's all.

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

2 participants