Examples of AltChunkFinder


Examples of org.docx4j.utils.AltChunkFinder

    WordprocessingMLPackage clonePkg = (WordprocessingMLPackage)this.getPackage().clone(); // consistent with MergeDocx approach
    JaxbXmlPartAltChunkHost clonedPart = (JaxbXmlPartAltChunkHost)clonePkg.getParts().get(partName);
       
    List<Object> contentList = ((ContentAccessor)clonedPart).getContent();
   
      AltChunkFinder bf = new AltChunkFinder();
    new TraversalUtil(contentList, bf);

    CTAltChunk altChunk;
    boolean encounteredDocxAltChunk = false;
    for (LocatedChunk locatedChunk : bf.getAltChunks()) {
     
      altChunk = locatedChunk.getAltChunk();
      AlternativeFormatInputPart afip
        =  (AlternativeFormatInputPart)clonedPart.getRelationshipsPart().getPart(
            altChunk.getId() );
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.