The code from XSSFWorkbook::commit() looks straightforward enough, but if 
I'm using the following code to get the properties, how do I fit the 
CTProperty array into the XmlOptions class needed by the save() method?

        FileInputStream xlsFileStream = new FileInputStream(xlsxInput);
        XSSFWorkbook wb = new XSSFWorkbook(xlsFileStream);
        POIXMLPropertiesTextExtractor txex1 = new 
POIXMLPropertiesTextExtractor(wb);
 
org.openxmlformats.schemas.officeDocument.x2006.customProperties.CTProperties
            props = 
txex1.getDocument().getProperties().getCustomProperties().getUnderlyingProperties();
        CTProperty[] properties = props.getPropertyArray();

Reply via email to