Module ImportFrom alias alias alias Import alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Num Assign NameStore Num Assign NameStore Call AttributeLoad Str attr keyword BinOpMult NameLoad NameLoad keyword BinOpMult NameLoad NameLoad Assign NameStore Call NameLoad Assign NameStore Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword AttributeLoad NameLoad attr keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad Str attr keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Num Assign NameStore Num Assign NameStore Call AttributeLoad Str attr keyword BinOpMult NameLoad NameLoad keyword BinOpMult NameLoad NameLoad Assign NameStore Call NameLoad Assign NameStore Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword AttributeLoad NameLoad attr keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad Str attr keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call NameLoad Assign NameStore Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword AttributeLoad NameLoad attr keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Num Assign NameStore Num Assign NameStore Call AttributeLoad Str attr keyword BinOpMult NameLoad NameLoad keyword BinOpMult NameLoad NameLoad Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword AttributeLoad NameLoad attr keyword Str keyword Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign NameStore Str Assign NameStore Call AttributeLoad Str attr keyword NameLoad keyword NameLoad keyword Call AttributeLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str attr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Dict Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Num Assign NameStore Num Assign NameStore Call AttributeLoad Str attr keyword BinOpMult NameLoad NameLoad keyword BinOpMult NameLoad NameLoad Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword AttributeLoad NameLoad attr keyword Str keyword Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Dict decorator_list decorator_list
N/A __future__ absolute_import print_function unicode_literals N/A base64 pydocx.constants EMUS_PER_PIXEL pydocx.openxml.packaging ImagePart MainDocumentPart pydocx.test DocumentGeneratorTestCase pydocx.test.utils WordprocessingDocumentFactory DrawingGraphicBlipTestCase N/A DocumentGeneratorTestCase N/A test_inline_image_with_multiple_ext_definitions N/A N/A self N/A N/A N/A width_px 5 N/A height_px 10 N/A document_xml N/A N/A 
            <p>
            <r>
              <t>Foo</t>
              <drawing>
                <inline>
                  <graphic>
                    <graphicData>
                      <pic>
                        <blipFill>
                          <blip embed="foobar">
                            <extLst>
                              <ext/>
                            </extLst>
                          </blip>
                        </blipFill>
                        <spPr>
                          <xfrm>
                            <ext cx="{cx}" cy="{cy}"/>
                          </xfrm>
                        </spPr>
                      </pic>
                    </graphicData>
                  </graphic>
                </inline>
              </drawing>
              <t>Bar</t>
            </r>
            </p>
         format cx N/A width_px EMUS_PER_PIXEL cy N/A height_px EMUS_PER_PIXEL N/A document N/A WordprocessingDocumentFactory N/A image_url http://google.com/image1.gif N/A document_rels N/A N/A N/A document relationship_format format id foobar type N/A ImagePart relationship_type target image_url target_mode External N/A N/A N/A document add MainDocumentPart document_xml document_rels N/A expected_html N/A N/A 
            <p>
              Foo
              <img
                height="{height}px"
                src="http://google.com/image1.gif"
                width="{width}px"
              />
              Bar
            </p>
         format width width_px height height_px N/A N/A N/A self assert_document_generates_html document expected_html N/A test_anchor_with_multiple_ext_definitions N/A N/A self N/A N/A N/A width_px 5 N/A height_px 10 N/A document_xml N/A N/A 
            <p>
            <r>
              <t>Foo</t>
              <drawing>
                <anchor>
                  <graphic>
                    <graphicData>
                      <pic>
                        <blipFill>
                          <blip embed="foobar">
                            <extLst>
                              <ext/>
                            </extLst>
                          </blip>
                        </blipFill>
                        <spPr>
                          <xfrm>
                            <ext cx="{cx}" cy="{cy}"/>
                          </xfrm>
                        </spPr>
                      </pic>
                    </graphicData>
                  </graphic>
                </anchor>
              </drawing>
              <t>Bar</t>
            </r>
            </p>
         format cx N/A width_px EMUS_PER_PIXEL cy N/A height_px EMUS_PER_PIXEL N/A document N/A WordprocessingDocumentFactory N/A image_url http://google.com/image1.gif N/A document_rels N/A N/A N/A document relationship_format format id foobar type N/A ImagePart relationship_type target image_url target_mode External N/A N/A N/A document add MainDocumentPart document_xml document_rels N/A expected_html N/A N/A 
            <p>
              Foo
              <img
                height="{height}px"
                src="http://google.com/image1.gif"
                width="{width}px"
              />
              Bar
            </p>
         format width width_px height height_px N/A N/A N/A self assert_document_generates_html document expected_html N/A test_anchor_with_no_size_ext N/A N/A self N/A N/A N/A document_xml 
            <p>
            <r>
              <t>Foo</t>
              <drawing>
                <anchor>
                  <graphic>
                    <graphicData>
                      <pic>
                        <blipFill>
                          <blip embed="foobar"/>
                        </blipFill>
                        <spPr>
                          <xfrm/>
                        </spPr>
                      </pic>
                    </graphicData>
                  </graphic>
                </anchor>
              </drawing>
              <t>Bar</t>
            </r>
            </p>
         N/A document N/A WordprocessingDocumentFactory N/A image_url http://google.com/image1.gif N/A document_rels N/A N/A N/A document relationship_format format id foobar type N/A ImagePart relationship_type target image_url target_mode External N/A N/A N/A document add MainDocumentPart document_xml document_rels N/A expected_html 
            <p>
              Foo
              <img src="http://google.com/image1.gif" />
              Bar
            </p>
         N/A N/A N/A self assert_document_generates_html document expected_html N/A test_blip_embed_refers_to_undefined_image_relationship N/A N/A self N/A N/A N/A document_xml 
            <p>
            <r>
              <t>Foo</t>
              <drawing>
                <anchor>
                  <graphic>
                    <graphicData>
                      <pic>
                        <blipFill>
                          <blip embed="foobar" />
                        </blipFill>
                      </pic>
                    </graphicData>
                  </graphic>
                </anchor>
              </drawing>
              <t>Bar</t>
            </r>
            </p>
         N/A document N/A WordprocessingDocumentFactory N/A N/A N/A document add MainDocumentPart document_xml N/A expected_html <p>FooBar</p> N/A N/A N/A self assert_document_generates_html document expected_html N/A test_internal_image_is_included_with_base64_content N/A N/A self N/A N/A N/A width_px 5 N/A height_px 10 N/A document_xml N/A N/A 
            <p>
            <r>
              <t>Foo</t>
              <drawing>
                <anchor>
                  <graphic>
                    <graphicData>
                      <pic>
                        <blipFill>
                          <blip embed="foobar" />
                        </blipFill>
                        <spPr>
                          <xfrm>
                            <ext cx="{cx}" cy="{cy}"/>
                          </xfrm>
                        </spPr>
                      </pic>
                    </graphicData>
                  </graphic>
                </anchor>
              </drawing>
              <t>Bar</t>
            </r>
            </p>
         format cx N/A width_px EMUS_PER_PIXEL cy N/A height_px EMUS_PER_PIXEL N/A document N/A WordprocessingDocumentFactory N/A document_rels N/A N/A N/A document relationship_format format id foobar type N/A ImagePart relationship_type target media/image1.jpeg target_mode Internal N/A N/A N/A document add MainDocumentPart document_xml document_rels N/A image_data fake data N/A expected_html N/A N/A 
            <p>
              Foo
              <img
                height="{height}px"
                src="data:image/jpeg;base64,{data}"
                width="{width}px"
              />
              Bar
            </p>
         format width width_px height height_px data N/A N/A N/A N/A base64 b64encode N/A N/A image_data encode utf-8 decode utf-8 N/A N/A N/A self assert_document_generates_html document expected_html additional_parts N/A word/media/image1.jpeg image_data N/A test_internal_image_is_not_included_if_part_is_missing N/A N/A self N/A N/A N/A width_px 5 N/A height_px 10 N/A document_xml N/A N/A 
            <p>
            <r>
              <t>Foo</t>
              <drawing>
                <anchor>
                  <graphic>
                    <graphicData>
                      <pic>
                        <blipFill>
                          <blip embed="foobar" />
                        </blipFill>
                        <spPr>
                          <xfrm>
                            <ext cx="{cx}" cy="{cy}"/>
                          </xfrm>
                        </spPr>
                      </pic>
                    </graphicData>
                  </graphic>
                </anchor>
              </drawing>
              <t>Bar</t>
            </r>
            </p>
         format cx N/A width_px EMUS_PER_PIXEL cy N/A height_px EMUS_PER_PIXEL N/A document N/A WordprocessingDocumentFactory N/A document_rels N/A N/A N/A document relationship_format format id foobar type N/A ImagePart relationship_type target media/image1.jpeg target_mode Internal N/A N/A N/A document add MainDocumentPart document_xml document_rels N/A expected_html <p>FooBar</p> N/A N/A N/A self assert_document_generates_html document expected_html additional_parts N/A N/A N/A