On 5/19/21 2:57 AM, [email protected] wrote:
When I convert a Word doc which uses SVGs for images from Word into
DITA, the W2X tool converts all of the SVGs into PNGs for the output. I
would much prefer that it leaves the SVGs in their native format.
I tried setting the converted-image-extensions parameter by adding *-p
convert.converted-image-extensions svg *to my command line, but the
w2x.bat file does not seem to recognize it and just grinds all of the
images into PNGs regardless.
Questions:
1. What am I doing wrong from the command line?
2. Is there a way of defining this behavior so that GUI follows the
same behavior?
Sorry but there is currently no way to make this work in w2x.
Current version of w2x is not aware that a DOCX may contain an SVG image
by the means of element: <asvg:svgBlip/>, therefore w2x only considers
the equivalent PNG image also included in the document.
Excerpts from your "Small_svg_sample.docx/document.xml":
---
<a:blip cstate="print" r:embed="rId8">[1]
<a:extLst>
<a:ext
uri="{28A0092B-C50C-407E-A947-70E740481C1C}">
<a14:useLocalDpi val="0"/>
</a:ext>
<a:ext
uri="{96DAC541-7B7A-43D3-8B79-37D633B846F1}">
<asvg:svgBlip r:embed="rId9"/>[2]
</a:ext>
</a:extLst>
</a:blip>
---
[1] Considered by w2x. "rId8" is "Small_svg_sample.docx/media/image1.png".
[2] Ignored by w2x. "rId9" is "Small_svg_sample.docx/media/image2.svg".
We'll support this feature in the next version of w2x (but not in
version 1.8.4 which should be released very shortly now).
--
XMLmind Word To XML Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/w2x-support