blob: f06b870ebbdc96928901bdc09fa4b7353c49e35d [file] [log] [blame]
ooxml.word.create
#item input.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<link href="reset.css" rel="stylesheet"/>
<style>
#include "common.css"
</style>
</head>
<body>
<figure>
<span><img src="images/test.png" style="width: 50%"></span>
</figure>
</body>
</html>
##item images/test.png
89504E470D0A1A0A0000000D4948445200000060000000400103000000DFFAE04D00000003504C54
45001EFF5E39ED880000001749444154785EEDC03101000000C220FBA7B6C36E58061C034000011C
4ED8260000000049454E44AE426082
#item expected
##item document.xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<w:document xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:dpct="http://schemas.openxmlformats.org/drawingml/2006/picture" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main">
<w:body>
<w:p>
<w:pPr>
<w:pStyle w:val="Figure"/>
</w:pPr>
<w:r>
<w:drawing>
<wp:inline>
<wp:extent cx="2635250" cy="1756833"/>
<wp:docPr id="1" name="Picture 1"/>
<wp:cNvGraphicFramePr>
<a:graphicFrameLocks noChangeAspect="1"/>
</wp:cNvGraphicFramePr>
<a:graphic>
<a:graphicData uri="http://schemas.openxmlformats.org/drawingml/2006/picture">
<dpct:pic>
<dpct:nvPicPr>
<dpct:cNvPr id="0" name="image"/>
<dpct:cNvPicPr/>
</dpct:nvPicPr>
<dpct:blipFill>
<a:blip r:embed="rId1"/>
<a:stretch>
<a:fillRect/>
</a:stretch>
</dpct:blipFill>
<dpct:spPr>
<a:xfrm>
<a:off x="0" y="0"/>
<a:ext cx="2635250" cy="1756833"/>
</a:xfrm>
<a:prstGeom prst="rect"/>
</dpct:spPr>
</dpct:pic>
</a:graphicData>
</a:graphic>
</wp:inline>
</w:drawing>
</w:r>
</w:p>
<w:sectPr>
<w:pgSz w:h="16840" w:w="11900"/>
<w:pgMar w:bottom="1440" w:left="1800" w:right="1800" w:top="1440"/>
</w:sectPr>
</w:body>
</w:document>
##item styles.xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<w:styles xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main">
<w:style w:styleId="Figure" w:type="paragraph">
<w:name w:val="Figure"/>
<w:qFormat/>
<w:pPr>
<w:spacing w:after="240" w:before="240"/>
<w:ind/>
<w:jc w:val="center"/>
</w:pPr>
</w:style>
<w:style w:default="1" w:styleId="Normal" w:type="paragraph">
<w:name w:val="Normal"/>
<w:qFormat/>
<w:pPr>
<w:spacing w:after="100" w:afterAutospacing="1" w:before="100" w:beforeAutospacing="1"/>
</w:pPr>
</w:style>
<w:style w:default="1" w:styleId="DefaultParagraphFont" w:type="character">
<w:name w:val="Default Paragraph Font"/>
<w:qFormat/>
</w:style>
<w:style w:default="1" w:styleId="TableNormal" w:type="table">
<w:name w:val="Normal Table"/>
<w:qFormat/>
<w:tblPr>
<w:tblCellMar>
<w:top w:type="dxa" w:w="0"/>
<w:left w:type="dxa" w:w="108"/>
<w:bottom w:type="dxa" w:w="0"/>
<w:right w:type="dxa" w:w="108"/>
</w:tblCellMar>
</w:tblPr>
</w:style>
</w:styles>
##item document.xml.rels
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<rel:Relationships xmlns:rel="http://schemas.openxmlformats.org/package/2006/relationships">
<rel:Relationship Id="rId1" Target="/word/media/image1.png" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image"/>
<rel:Relationship Id="rId2" Target="/word/styles.xml" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles"/>
</rel:Relationships>
##item /word/media/image1.png
89504E470D0A1A0A0000000D4948445200000060000000400103000000DFFAE04D00000003504C54
45001EFF5E39ED880000001749444154785EEDC03101000000C220FBA7B6C36E58061C034000011C
4ED8260000000049454E44AE426082