package org.apache.poi.examples.xslf;
import org.apache.poi.ooxml.POIXMLDocumentPart;
+import org.apache.poi.util.LocaleUtil;
import org.apache.poi.xslf.usermodel.*;
import org.openxmlformats.schemas.drawingml.x2006.main.CTBlip;
import org.openxmlformats.schemas.drawingml.x2006.main.CTBlipFillProperties;
File inputFile = new File(args[0]);
if (!inputFile.exists()) {
- System.out.printf("Unable to find input file at path: %s", args[0]);
+ System.out.printf(LocaleUtil.getUserLocale(), "Unable to find input file at path: %s", args[0]);
System.exit(1);
}
.map(s -> (XSLFDiagram) s)
.collect(Collectors.toList());
}
-
+
private static String colorToHex(Color color) {
return String.format("#%02x%02x%02x", color.getRed(), color.getGreen(), color.getBlue());
}