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

pptx corrupt when using with pandoc template.pptx just opened and saved with LibreOffice or PowerPoint #10085

Open
MichaelNI2024 opened this issue Aug 13, 2024 · 4 comments
Labels

Comments

@MichaelNI2024
Copy link

I use quarto.org which relies on pandoc to produce pptx documents. When using the default template (created with "quarto pandoc -o template.pptx --print-default-data-file reference.pptx") I can produce a valid ppt-file.
When I open the template and save it without any change under a new name (either from LibreOffice on Mac (example attached) or Libreoffice on Windows or Powerpoint on Windows) and use this "new" template, the output is corrupt. Powerpoint on Windows 11 can't open it, Powerpoint on Win 10 partially repairs it, part are missing and Libreoffice on Win 10 opens it but, things are missing.

The issue might be related to the open issue #9421 but I could not reproduce the Teams issue, i.e. I could copy the original template on a network drive and it still worked.

Attached you also find both pptx-results.

template.pptx
templateLOmac.pptx

TestPowerpoint-working-produced-with-template .pptx
TestPowerpoint-corrupted-produced-with-templateLOmac.pptx

The pandoc version coming with Quarto 1.4 is 3.1.11.

@MichaelNI2024
Copy link
Author

The same happens also when I replace the version 3.1.11 with the newest version 3.3

@jgm
Copy link
Owner

jgm commented Aug 15, 2024

When I try to save the template.pptx using LibreOffice I get this dialog box. How did you respond?
image

@jgm
Copy link
Owner

jgm commented Aug 15, 2024

I selected "Use PowerPoint 2007-365 format." I was then able to open the saved file with both Powerpoint and LibreOffice...

@MichaelNI2024
Copy link
Author

That is not the issue. The "saved" template can be reopened with any ppt-programm.
The issue is that a pptx produced with pandoc based on this "saved" template is corrupted, i.e. TestPowerpoint-corrupted-produced-with-templateLOmac.pptx

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

No branches or pull requests

2 participants