sergey-tihon / Clippit

Fresh PowerTools for OpenXml
https://sergey-tihon.github.io/Clippit/
MIT License
47 stars 18 forks source link

Bug Fixes for PresentationBuilder #16

Closed sergey-tihon closed 4 years ago

sergey-tihon commented 4 years ago

Known errors:

sergey-tihon commented 4 years ago

System.Xml.XmlException : 'css' is an undeclared prefix. Line 30, position 13.

<xml xmlns:v="urn:schemas-microsoft-com:vml"
 xmlns:o="urn:schemas-microsoft-com:office:office"
 xmlns:p="urn:schemas-microsoft-com:office:powerpoint"
 xmlns:oa="urn:schemas-microsoft-com:office:activation">
   ...
  <v:shadow css:blur="63500f" color="#dce3e4 [2]" opacity="49150f" offset=".74833mm,.74833mm"/>
 </v:shape></xml>

System.Xml.XmlException : 'w' is an undeclared prefix. Line 46, position 4.

<xml xmlns:v="urn:schemas-microsoft-com:vml"
 xmlns:o="urn:schemas-microsoft-com:office:office"
 xmlns:p="urn:schemas-microsoft-com:office:powerpoint"
 xmlns:oa="urn:schemas-microsoft-com:office:activation">
  <v:shape id="_x0000_s2053" type="#_x0000_t75" style='position:absolute;
  left:2.875pt;top:33.25pt;width:197.375pt;height:103.75pt;visibility:visible;
  mso-wrap-style:square;mso-width-percent:0;mso-height-percent:0;
  mso-wrap-distance-left:9pt;mso-wrap-distance-top:0;mso-wrap-distance-right:9pt;
  mso-wrap-distance-bottom:0;mso-position-horizontal:absolute;
  mso-position-horizontal-relative:text;mso-position-vertical:absolute;
  mso-position-vertical-relative:text;mso-width-percent:0;mso-height-percent:0;
  mso-width-relative:margin;mso-height-relative:margin'>
  <v:imagedata o:relid="rId3" o:title=""/>
  <w:wrap type="square"/>
 </v:shape></xml>

System.Xml.XmlException : 'if' is an unexpected token. The expected token is 'CDATA['. Line 15, position 6.

<xml xmlns:v="urn:schemas-microsoft-com:vml"
 xmlns:o="urn:schemas-microsoft-com:office:office"
 xmlns:p="urn:schemas-microsoft-com:office:powerpoint"
 xmlns:oa="urn:schemas-microsoft-com:office:activation">
  <v:shape id="ShockwaveFlash1" o:spid="_x0000_s3074" type="#_x0000_t201"
  style='position:absolute;left:18pt;top:54pt;width:683.875pt;height:420pt'
  stroked="f" strokecolor="black [1]">
  <![if gte mso 9]><v:imagedata o:relid="rId1" o:title="" embosscolor="shadow add(51)"/>
  <![endif]><v:shadow on="t" type="emboss" color="lineOrFill darken(153)"
   color2="shadow add(102)" offset="1pt,1pt"/>
 </v:shape></xml>