Package org.docx4j.convert.out

Examples of org.docx4j.convert.out.FORenderer


  }
 
 
  protected FORenderer initializeFoRenderer(FOSettings settings) {
   
    FORenderer ret = settings.getCustomFoRenderer();
    if (ret == null) {
      if (FOSettings.INTERNAL_FO_MIME.equals(settings.getApacheFopMime())) {
        ret = FORendererDummy.getInstance();
        forceRequires1Pass();
      }
View Full Code Here


    System.out.println("Saved " + outputfilepath)
  }

// ======================================================================== 
  public void output(Document xslfo, OutputStream os, Configuration fopConfigZZZ) throws Docx4JException {
  FORenderer renderer = FORendererApacheFOP.getInstance();
  String foDocument = XmlUtils.w3CDomNodeToString(xslfo);
    renderer.render(foDocument, foSettings, false, null, os);
  }
View Full Code Here

    float writableWidthPts = writableWidthTwips/20;
    int writableHeightTwips = pageDimensions.getWritableHeightTwips();
    float writableHeightPts = writableHeightTwips/20;

    // TODO - avoid reference to FORenderer here! See 
    FORenderer foRenderer  = ((FOSettings)context.getConversionSettings()).getCustomFoRenderer();
    log.debug(foRenderer.getClass().getName());
   
   
    if (wrap) {
      // Floats define a block that is "out of line" in drifts to the top/left/right side of the page;
      // the text *flows around it*.
 
View Full Code Here

TOP

Related Classes of org.docx4j.convert.out.FORenderer

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.