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
Can't export SVG from docx file #7244
Comments
for convenience, here's how it is represented: <w:drawing>
<wp:inline distT="0" distB="0" distL="0" distR="0"
wp14:anchorId="6189F2C1" wp14:editId="2D9EC143">
<wp:extent cx="5334000" cy="3552825" />
<wp:effectExtent l="0" t="0" r="0" b="9525" />
<wp:docPr id="1" name="Graphic 1" />
<wp:cNvGraphicFramePr>
<a:graphicFrameLocks xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"
noChangeAspect="1" />
</wp:cNvGraphicFramePr>
<a:graphic xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main">
<a:graphicData uri="http://schemas.openxmlformats.org/drawingml/2006/picture">
<pic:pic xmlns:pic="http://schemas.openxmlformats.org/drawingml/2006/picture">
<pic:nvPicPr>
<pic:cNvPr id="1" name="Graphic 1" />
<pic:cNvPicPr />
</pic:nvPicPr>
<pic:blipFill>
<a:blip r:embed="rId8">
<a:extLst>
<a:ext uri="{28A0092B-C50C-407E-A947-70E740481C1C}">
<a14:useLocalDpi xmlns:a14="http://schemas.microsoft.com/office/drawing/2010/main"
val="0" />
</a:ext>
<a:ext uri="{96DAC541-7B7A-43D3-8B79-37D633B846F1}">
<asvg:svgBlip xmlns:asvg="http://schemas.microsoft.com/office/drawing/2016/SVG/main"
r:embed="rId9" />
</a:ext>
</a:extLst>
</a:blip>
<a:stretch>
<a:fillRect />
</a:stretch>
</pic:blipFill>
<pic:spPr>
<a:xfrm>
<a:off x="0" y="0" />
<a:ext cx="5334000" cy="3552825" />
</a:xfrm>
<a:prstGeom prst="rect">
<a:avLst />
</a:prstGeom>
</pic:spPr>
</pic:pic>
</a:graphicData>
</a:graphic>
</wp:inline>
</w:drawing> |
Hello @jgm Are you still considering implementing this issue? My suggestion would be to add an option, like The new option could be used like this: Without Example
Having that, one can follow the epub best practice described there in #2766 and go from docx to markdown to epub (or latex) without loosing the svg file What do you think? |
I'm actually more tempted just to (by default) extract the svg instead of the png, since the png has the role of a fallback. |
I'm totally ok for your suggestion. As many format supports svg, it should be ok. |
Thanks @jgm for the quick implementation |
I am experiencing an issue when a docx file has a SVG image in it, the extract-media option only extracts the PNG preview image.
I am using pandoc 2.13
A command you can use to reproduce it is:
pandoc --extract-media bananas -f docx example.docx
I have attached a sample file to reproduce it with. example.docx
The text was updated successfully, but these errors were encountered: