Package play.modules.pdf.PDF

Examples of play.modules.pdf.PDF.Options


      render(content, title);
    } else {
      watch = new StopWatch();
      watch.start();
     
      Options options = new Options();
      options.FOOTER = "<span style='font-size: 8pt;font-style:italic;color: #666;'>Generated with Play! Framework PDF Module</span><span style=\" color: rgb(141, 172, 38);float: right;font-size: 8pt;\">Page <pagenumber>/<pagecount></span>";
      options.filename = id + ".pdf";
     
      renderPDF(content, options, title);
    }
View Full Code Here


        loadHeaderAndFooter(doc, doc.args);
      }
  }

  private void loadHeaderAndFooter(PDFDocument doc, Map<String, Object> args) throws TemplateNotFoundException {
      Options options = doc.options;
      if(options == null)
        return;
      if(!StringUtils.isEmpty(options.HEADER_TEMPLATE)){
        Template template = TemplateLoader.load(options.HEADER_TEMPLATE);
        options.HEADER = template.render(new HashMap<String, Object>(args));
View Full Code Here

TOP

Related Classes of play.modules.pdf.PDF.Options

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.