Skip to content

xslf: pictureShape copy cannot deal with SVG copying #927

@zpc0921

Description

@zpc0921
        // TODO: check for SVG copying
        CTOfficeArtExtensionList extLst = blip.getExtLst();
        for(CTOfficeArtExtension ext : extLst.getExtArray()){
            String xpath = "declare namespace a14='"+ MS_DML_NS +"' $this//a14:imgProps/a14:imgLayer";
            XmlObject[] obj = ext.selectPath(xpath);
            if(obj != null && obj.length == 1) {
                try (XmlCursor c = obj[0].newCursor()) {
                    String id = c.getAttributeText(EMBED_TAG);
                    String newId = getSheet().importBlip(id, p.getSheet());
                    c.setAttributeText(EMBED_TAG, newId);
                }
            }
        }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions