Skip to content

SmartArt Extraction #1486

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

Closed
ivanluk914 opened this issue Apr 24, 2025 · 1 comment
Closed

SmartArt Extraction #1486

ivanluk914 opened this issue Apr 24, 2025 · 1 comment

Comments

@ivanluk914
Copy link

Hello, I would like to inquire whether SmartArt extraction is supported in this package. I am currently attempting to extract the text and hierarchy from SmartArt but have yet to find a solution. Any guidance or assistance on this matter would be greatly appreciated. Thank you in advance!

@scanny
Copy link
Contributor

scanny commented Apr 24, 2025

Not directly, no. Basically there wasn't enough call for it and there was no documentation on that aspect of the schema, at the time at least.

As I recall, the SmartArt XML is held directly in the GraphicFrame shape in which it appears, like tables are. So you could get a reference to the XML element with shp._graphicFrame and then parse that directly using lxml methods. I expect that's what I would do if I needed something in a pinch.

print(shp._graphicFrame.xml) will give you a look at what the underlying XML looks like, then XPath is your friend.

@scanny scanny closed this as completed Apr 24, 2025
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