Package com.itextpdf.tool.xml.pipeline.css

Examples of com.itextpdf.tool.xml.pipeline.css.CssResolverPipeline


    HtmlPipelineContext htmlContext = new HtmlPipelineContext(cssAppliers);
    htmlContext.setTagFactory(Tags.getHtmlTagProcessorFactory());
    // Pipelines
    PdfWriterPipeline pdf = new PdfWriterPipeline(doc, writer);
    HtmlPipeline html = new HtmlPipeline(htmlContext, pdf);
    CssResolverPipeline css = new CssResolverPipeline(cssResolver, html);
    XMLWorker worker = new XMLWorker(css, true);
    XMLParser p = new XMLParser(worker);
    p.parse(contentIs, true);
    Long parse = (new Date()).getTime();
    LOG.debug("PDF Output - JSConverter: " + (rhino - start) + "ms PDF Render: " + (parse - rhino) + "ms");
View Full Code Here


      HtmlPipeline htmlPipeline = new HtmlPipeline(htmlContext, new PdfWriterPipeline(document, writer));

      CSSResolver cssResolver = workerHelper.getDefaultCssResolver(true);

      Pipeline<?> pipeline = new CssResolverPipeline(cssResolver, htmlPipeline);

      XMLWorker worker = new XMLWorker(pipeline, true);
      XMLParser parser = new XMLParser(worker);

      if (source instanceof InputStream) {
View Full Code Here

TOP

Related Classes of com.itextpdf.tool.xml.pipeline.css.CssResolverPipeline

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.