String inputfilepath = "/home/sma/powerpoint/2010PPT.pptx";
String outputfilepath ="/home/sma/powerpoint/2010PPT_COPY.pptx";
PresentationMLPackage pmlPackage =(PresentationMLPackage)OpcPackage.load(new java.io.File(inputfilepath));
SaveToZipFile saver = new SaveToZipFile(pmlPackage);
saver.save(outputfilepath);
<?xml version="1.0" encoding="UTF-8"?>
<p:sld xmlns:p="http://schemas.openxmlformats.org/presentationml/2006/main"
xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"
xmlns:c="http://schemas.openxmlformats.org/drawingml/2006/chart"
xmlns:dgm="http://schemas.openxmlformats.org/drawingml/2006/diagram"
xmlns:ns10="http://schemas.openxmlformats.org/drawingml/2006/compatibility"
xmlns:ns11="http://schemas.openxmlformats.org/drawingml/2006/lockedCanvas"
xmlns:ns5="http://schemas.openxmlformats.org/drawingml/2006/chartDrawing"
xmlns:ns9="http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing"
xmlns:pic="http://schemas.openxmlformats.org/drawingml/2006/picture"
xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"
xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing">
<p:cSld>
<p:spTree>
<p:nvGrpSpPr>
<p:cNvPr id="1" name="" />
<p:cNvGrpSpPr />
<p:nvPr />
</p:nvGrpSpPr>
<p:grpSpPr>
<a:xfrm>
<a:off x="0" y="0" />
<a:ext cx="0" cy="0" />
<a:chOff x="0" y="0" />
<a:chExt cx="0" cy="0" />
</a:xfrm>
</p:grpSpPr>
</p:spTree>
<p:controls>
<p:control imgH="5759280" imgW="7561440" name="ShockwaveFlash1"
r:id="rId2" />
</p:controls>
<p:extLst>
<p:ext uri="{BB962C8B-B14F-4D97-AF65-F5344CB8AC3E}">
<p14:creationId
xmlns:p14="http://schemas.microsoft.com/office/powerpoint/2010/main"
val="2204587297" />
</p:ext>
</p:extLst>
</p:cSld>
<p:clrMapOvr>
<a:masterClrMapping />
</p:clrMapOvr>
</p:sld>
<?xml version="1.0" encoding="UTF-8"?>
<p:sld xmlns:p="http://schemas.openxmlformats.org/presentationml/2006/main"
xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"
xmlns:c="http://schemas.openxmlformats.org/drawingml/2006/chart"
xmlns:dgm="http://schemas.openxmlformats.org/drawingml/2006/diagram"
xmlns:ns10="http://schemas.openxmlformats.org/drawingml/2006/compatibility"
xmlns:ns11="http://schemas.openxmlformats.org/drawingml/2006/lockedCanvas"
xmlns:ns5="http://schemas.openxmlformats.org/drawingml/2006/chartDrawing"
xmlns:ns9="http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing"
xmlns:pic="http://schemas.openxmlformats.org/drawingml/2006/picture"
xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"
xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing">
<p:cSld>
<p:spTree>
<p:nvGrpSpPr>
<p:cNvPr id="1" name="" />
<p:cNvGrpSpPr />
<p:nvPr />
</p:nvGrpSpPr>
<p:grpSpPr>
<a:xfrm>
<a:off x="0" y="0" />
<a:ext cx="0" cy="0" />
<a:chOff x="0" y="0" />
<a:chExt cx="0" cy="0" />
</a:xfrm>
</p:grpSpPr>
</p:spTree>
<p:controls>
<p:control imgH="5759280" imgW="7561440" name="ShockwaveFlash1"
r:id="rId2" />
</p:controls>
<p:extLst>
<p:ext uri="{BB962C8B-B14F-4D97-AF65-F5344CB8AC3E}">
<p14:creationId
xmlns:p14="http://schemas.microsoft.com/office/powerpoint/2010/main"
val="2204587297" />
</p:ext>
</p:extLst>
</p:cSld>
<p:clrMapOvr>
<a:masterClrMapping />
</p:clrMapOvr>
</p:sld>
WARN org.docx4j.utils.XSLTUtils .logWarn line 16 - Found some mc:AlternateContent
WARN org.docx4j.utils.XSLTUtils .logWarn line 16 - Selecting p:control
WARN org.docx4j.jaxb.JaxbValidationEventHandler .handleEvent line 90 - [ERROR] : unexpected element (uri:"http://schemas.openxmlformats.org/presentationml/2006/main", local:"pic"). Expected elements ar
INFO org.docx4j.jaxb.JaxbValidationEventHandler .handleEvent line 106 - continuing (with possible element/attribute loss)
SaveToZipFile saver = new SaveToZipFile(presentationMLPackage);
saver.save(outputfilepath);
Users browsing this forum: No registered users and 11 guests