Has anyone else run into this?
I've also attached a pick of the example diff.
Read more : Reserialization of charts causes issues in booleans? | Views : 2362 | Replies : 2 | Forum : pptx4j
It is currently Fri Jun 20, 2025 11:39 pm
// tag definition
HashMap<String, String> mappings = new HashMap<String, String>();
mappings.put("DATE", Calendar.getInstance().getTime().toString());
mappings.put("PAGE_BREAK", "<w:br w:type=\"page\" />");
// tag replacement
String doc = XmlUtils.marshaltoString(part.getJaxbElement(), true);
part.setJaxbElement((Document) XmlUtils.unmarshallFromTemplate(doc, mappings));
String name = "/ppt/slides/slide"+slideIndex+".xml";
SlidePart slidePart = new SlidePart(new PartName(name));
slidePart.setJaxbElement( slideTemplate );
// do slide template modifications here.
List shapeTree = slideTemplate.getCSld().getSpTree().getSpOrGrpSpOrGraphicFrame();
CTGraphicFrame gf = new CTGraphicFrame();
shapeTree.add(gf);
Graphic g = new Graphic();
gf.setGraphic(g);
GraphicData gd = new GraphicData();
g.setGraphicData(gd);
CTRelId cri = new CTRelId();
gd.getAny().add(cri);
cri.setId("rId2");
Total posts 10181 • Total topics 2864 • Total members 2095