Package org.docx4j.openpackaging.parts

Examples of org.docx4j.openpackaging.parts.DocPropsCorePart


    return new ThemePart(new PartName(partName));
  }

  public Part CreateDocPropsCorePartObject(String partName)
      throws InvalidFormatException {
    return new DocPropsCorePart(new PartName(partName));
  }
View Full Code Here


   * @since 3.0.0
   */ 
  public void setTitle(String title) {
   
    if (this.getDocPropsCorePart()==null) {
      DocPropsCorePart core;
      try {
        core = new DocPropsCorePart();
        org.docx4j.docProps.core.ObjectFactory coreFactory = new org.docx4j.docProps.core.ObjectFactory();
        core.setJaxbElement(coreFactory.createCoreProperties() );
        this.addTargetPart(core);     
      } catch (InvalidFormatException e) {
        log.error(e.getMessage(), e);
      }
    }
View Full Code Here

      log.error(e.getMessage(), e);
    }
   
    // Metadata: docx4j 2.7.1 can populate some of this from docx4j.properties
    // See SaveToZipFile
    DocPropsCorePart core = new DocPropsCorePart();
    org.docx4j.docProps.core.ObjectFactory coreFactory = new org.docx4j.docProps.core.ObjectFactory();
    core.setJaxbElement(coreFactory.createCoreProperties() );
    wmlPack.addTargetPart(core);
     
   
    DocPropsExtendedPart app = new DocPropsExtendedPart();
    org.docx4j.docProps.extended.ObjectFactory extFactory = new org.docx4j.docProps.extended.ObjectFactory();
View Full Code Here

TOP

Related Classes of org.docx4j.openpackaging.parts.DocPropsCorePart

Copyright © 2018 www.massapicom. 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.