Package org.docx4j.convert.out.fo

Examples of org.docx4j.convert.out.fo.PlaceholderReplacementHandler


      fop = fopFactory.newFop(outputFormat, outputStream);
      result = (placeholderLookup == null ?
          //1 Pass
          new SAXResult(fop.getDefaultHandler()) :
          //2 Pass
          new SAXResult(new PlaceholderReplacementHandler(fop.getDefaultHandler(), placeholderLookup)));
    } catch (FOPException e) {
      throw new Docx4JException("Exception setting up result for fo transformation: " + e.getMessage(), e);
    }

    Transformer transformer;
View Full Code Here


  protected FormattingResults calcResults(FopFactory fopFactory, String outputFormat, Source foDocumentSrc, PlaceholderReplacementHandler.PlaceholderLookup placeholderLookup) throws Docx4JException {
    Fop fop = null;
    Result result = null;
    try {
      fop = fopFactory.newFop(outputFormat, new NullOutputStream());
      result = new SAXResult(new PlaceholderReplacementHandler(fop.getDefaultHandler(), placeholderLookup));
    } catch (FOPException e) {
      throw new Docx4JException("Exception setting up result for fo transformation: " + e.getMessage(), e);
    }

    Transformer transformer;
View Full Code Here

TOP

Related Classes of org.docx4j.convert.out.fo.PlaceholderReplacementHandler

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.