SlidePart — Aspose.Slides FOSS Java API Reference

Overview

SlidePart static utility methods for cloning slide parts and updating relationships. Browse the properties and methods in the tables below to understand the complete public API surface of this type. All members listed here are part of the stable public API and may be used in production code targeting the FOSS edition.

Package: org.aspose.slides.foss.internal.pptx


Methods

MethodReturnsDescription
createEmpty(OpcPackage pkg, String partName, String layoutPartName)voidCreates an empty slide part in the OPC package with a relationship to the given layout.
cloneFrom(OpcPackage sourcePackage, String sourcePartName, OpcPackage destPackage, String destPartName, String destLayoutPartName)voidClones a slide part from a source package to a destination package, re-pointing the layout relationship to the given destination layout.
resolveTargetStatic(String sourcePartName, String relativeTarget)StringResolves a relative target path against a source part name to produce an absolute part path.
computeRelativeTarget(String fromPart, String toPart)StringComputes a relative path from one part to another within the OPC package.
cloneRelatedPart(OpcPackage sourcePackage, String sourceTarget, OpcPackage destPackage, String destPartName, String relType)StringClones a related part (theme, image, etc.
updateRidReferences(Element root, Map<String, String> ridMapping)voidUpdates all r:id attribute references in an XML element tree according to the given mapping.
serializeXml(Element root)byte[]Serializes an XML element to UTF-8 bytes with XML declaration.
parseXml(byte[] xmlBytes)DocumentParses XML bytes into a DOM Document.

See Also