Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

SVG added with data on Slide Master causes file corruption #522

Closed
rnoelle opened this issue Mar 21, 2019 · 2 comments
Closed

SVG added with data on Slide Master causes file corruption #522

rnoelle opened this issue Mar 21, 2019 · 2 comments

Comments

@rnoelle
Copy link

rnoelle commented Mar 21, 2019

Adding an image to a slide with SVG in base64 works great, but I can't add an image this way to a slide master without receiving an error when I open the file -
PowerPoint found a problem with content in Executive Deck.pptx.
PowerPoint can attempt to repair the presentation.

pptx.defineSlideMaster({ title: 'MASTER_SLIDE', objects: [ { "image" : {x: .83, y: 1.6, w: 5.57, h: 1, data: svgBase64}}], })

The file does open, and I don't see anything actually removed, but with multiple masters it's causing the PowerPoint to save multiple times for every pptx.save()

@gitbrent
Copy link
Owner

[Closing due to age]

@Sher-V
Copy link

Sher-V commented Feb 4, 2021

Did you solve this?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants