Hello,
We have placeholder images in pptx that we replace dynamically at runtime, the new image size may be bigger then the original placeholder image.
Is there anyway to constrain the size of visible image in pptx.
It is currently Sun Jan 12, 2025 3:26 pm
public void replaceTitle(String headerString) throws JAXBException{
String xpath = "//w:r[w:t[contains(text(),'#Dokumentname')]]";
List<Object> list = mainDocumentPart.getJAXBNodesViaXPath(xpath, true);
for (Object obj : list) {
List<Object> objContent=((R)obj).getContent();
objContent.clear();
WordParagraph p = new WordParagraph(headerString);
objContent.add(p.getP());
}
}
String xpath = "//w:r[w:t[contains(text(),'audith')]]";
List<Object> list = documentPart.getJAXBNodesViaXPath(xpath, true);
WordprocessingMLPackage wordMLPackage = WordprocessingMLPackage.createPackage();
MainDocumentPart mdp = wordMLPackage.getMainDocumentPart();
mdp.addStyledParagraphOfText("NormalIndent", "The following PHP error occurs: "); // here i want preserve the whitespace with setSpace("preserve"), but how?
Total posts 10116 • Total topics 2845 • Total members 2076