Package com.itextpdf.tool.xml.pipeline.html

Examples of com.itextpdf.tool.xml.pipeline.html.HtmlPipelineContext


    cssResolver.addCss(cssFile);
    // HTML
    XMLWorkerFontProvider fontProvider = new XMLWorkerFontProvider();
    fontProvider.defaultEncoding = "UTF-8";
    CssAppliers cssAppliers = new CssAppliersImpl(fontProvider);
    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);
View Full Code Here


      document.open();

      XMLWorkerHelper workerHelper = XMLWorkerHelper.getInstance();

      HtmlPipelineContext htmlContext = new HtmlPipelineContext(null);
      htmlContext.setTagFactory(Tags.getHtmlTagProcessorFactory());

      if (Conditions.isNotEmpty(imagesRootPath)) {
        htmlContext.setImageProvider(new AbstractImageProvider() {

          @Override
          public String getImageRootPath() {

            return imagesRootPath;
View Full Code Here

TOP

Related Classes of com.itextpdf.tool.xml.pipeline.html.HtmlPipelineContext

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.