Class PartialDeepCopy

java.lang.Object
org.docx4j.convert.out.common.preprocess.PartialDeepCopy

public class PartialDeepCopy extends Object
Create a partial deep copy of the document. All the parts are copied, as they may have some references to other parts. The data in the parts is only copied if the relationship type of the part is contained in the passed relationshipTypes otherwise the new part contains a reference to the data of the old part.
If the passed relationship types is null, then it will do a complete deep copy. This is probably faster than storing and reading the document but it is restricted to Parts of the types: BinaryPart, JaxbXmlPart, CustomXmlDataStoragePart, XmlPart.
If the passed relationship types is empty, then the passed Package is returned.