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

Cannot extract text from shape if it has equation #947

Open
santibreo opened this issue Feb 29, 2024 · 1 comment
Open

Cannot extract text from shape if it has equation #947

santibreo opened this issue Feb 29, 2024 · 1 comment

Comments

@santibreo
Copy link

I have a Powepoint as simple as the attachment and I cannot extract the text using the code in Accessing the text frame.

It seems like, if the shape has an equation inside, it has not text_frame.

It is weird because if I check shape.part.blob the text is there.
cannot_extract_text.pptx

@scanny
Copy link
Owner

scanny commented Mar 2, 2024

Hmm, yeah, that's weird. The entire shape is "nested" in an <mc:AlternateContent> element which is why it doesn't appear in slide.shapes.

If the equation was a separate shape I expect this wouldn't happen (only the equation shape would be nested).

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