https://bz.apache.org/bugzilla/show_bug.cgi?id=59290

Andreas Beeker <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |WORKSFORME
             Status|NEW                         |RESOLVED

--- Comment #3 from Andreas Beeker <[email protected]> ---
It's always a pity when a bug entry is not accompanied by an example file.

So I've made up one myself (via Office 20169 ... and it works ... with the
following code


@Test
public void emftest() throws IOException {
    InputStream inp = new FileInputStream("emftest.xlsx");
    XSSFWorkbook wb = new XSSFWorkbook(inp);
    XSSFSheet sheet = wb.getSheetAt(0);
    for (XSSFShape shape : sheet.getDrawingPatriarch().getShapes()) {
        XSSFPicture picture = (XSSFPicture) shape;
        byte[] imageBytes = picture.getPictureData().getData();
        FileOutputStream fos = new FileOutputStream("bla.emf");
        fos.write(imageBytes);
        fos.close();
    }
    wb.close();
    inp.close();
}

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to