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

SmartArt support / replaceText #138

Open
singerla opened this issue Dec 18, 2024 · 3 comments
Open

SmartArt support / replaceText #138

singerla opened this issue Dec 18, 2024 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@singerla
Copy link
Owner

          @singerla I'm working on a task which replaces the text present in the pptx of a particular slide. Also all functionality has been implemented in python using python-pptx lib. But I'm struggle at replacing text present in SmartArt, Charts etc. Does this pptx-automizer supports modifying SmartArt, Charts etc?

Originally posted by @HarshalSangme in #72 (comment)

@singerla
Copy link
Owner Author

singerla commented Dec 18, 2024

Hi @HarshalSangme,

I was playing around with SmartArt, and I'm sorry, but it introduces a whole lot of relations.

To get replaceText working on a SmartArt, we should introduce a new shape type and apply modifiers to e.g. ppt/diagrams/data1.xml. This is where PowerPoint stores the data for each SmartArt shape.

This is a very interesting feature and I think it could be useful for some other users to be able to modify SmartArt.

@singerla singerla added the enhancement New feature or request label Dec 18, 2024
@singerla
Copy link
Owner Author

@MP70, isn't this similar to OLE?

<a:graphic>
  <a:graphicData uri="http://schemas.openxmlformats.org/drawingml/2006/diagram">
    <dgm:relIds r:dm="rId3" r:lo="rId4" r:qs="rId5" r:cs="rId6" xmlns:dgm="http://schemas.openxmlformats.org/drawingml/2006/diagram" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" />
  </a:graphicData>
</a:graphic>

@MP70
Copy link
Collaborator

MP70 commented Dec 18, 2024

@singerla similar I suppose in XML structure although obviously OLE is using the embeddings folder.

OLE support was quite light to be honest, I really handled it as a one off case from memory.

@singerla singerla self-assigned this Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants