KeyError: "no content type 'application/x-fontdata' in pptx.spec.pml_parttypes"
I get the above error when opening a presentation. I'm guessing there's an embedded font that python-pptx can't cope with?
Traceback (most recent call last):
File "ppt_helloworld.py", line 4, in
Hi mrpj, can you send a listing of the contents of the .pptx file? I need to see the "directory" structure.
On Mac/Linux the command is:
unzip -l sharp_template.pptx
and it outputs something like this:
Archive: test.pptx
Length Date Time Name
-------- ---- ---- ----
3259 01-01-80 00:00 [Content_Types].xml
738 01-01-80 00:00 _rels/.rels
311 01-01-80 00:00 ppt/slides/_rels/slide1.xml.rels
1138 01-01-80 00:00 ppt/_rels/presentation.xml.rels
...
788 01-01-80 00:00 docProps/core.xml
9395 01-01-80 00:00 ppt/printerSettings/printerSettings1.bin
-------- -------
97530 38 files
I need to see what files are in there for the application/x-fontdata content type.
It's quick to fix once I have that information.
I was able to find what I needed. I pushed a fix for this to the develop branch with commit 67b498e. Will get to master with next release.
Thanks very much!