After cloning an XSSFSheet with XSSFWorkbook.cloneSheet() method, pictures are not properly copied in the cloned sheet. e.g. the following Drawing drawing = sheet.createDrawingPatriarch(); for (XSSFShape shape : ((XSSFDrawing) drawing).getShapes()) { if (shape instanceof XSSFPicture) { XSSFPictureData pictureData = ((XSSFPicture) shape).getPictureData(); // ... } } pictureData is null after assignment.
Created attachment 31570 [details] Here is a proposed patch for XSSFWorkbook.java
Created attachment 31574 [details] Patch for XSSFWorkbook.java Sorry, ignore the previous attachment which did not create a consistent XSLX file once saved.
Applied with r1665959 for inclusion in release 3.12, thanks for providing the patch!
Is it possible to read the XLS file with Apache POI? XSSFWorkbook may be the reason my code is not working. I'm looking for the options to get the XSSF library at https://www.writemyessayfast.org/write-my-essay-in-6-hours.php projects.