Package com.dotcms.repackage.org.xhtmlrenderer.pdf

Examples of com.dotcms.repackage.org.xhtmlrenderer.pdf.ITextRenderer.layout()


        ITextRenderer renderer = new ITextRenderer();

        renderer.setDocument(pageID);
        Logger.debug(this, "Calling iText render");
        renderer.layout();
        try {
          Logger.debug(this, "Using iText to Create PDF");
          renderer.createPDF(resp.getOutputStream());

        } catch (DocumentException e) {
View Full Code Here


        srcNode.setNodeValue(cleanText);
      }

      renderer.setDocument(doc, null);
      // renderer.setDocument("http://www.w3.org/");
      renderer.layout();
      renderer.createPDF(resp.getOutputStream());

    } catch (ParseErrorException e) {
      Logger.error(this, "ParseErrorException: "
          + e.getMessage(), e);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.