Package com.extremelogic.jtextmarker

Examples of com.extremelogic.jtextmarker.PdfProcessor


*/
public class SampleMain {

  public static void main(String[] args) {

    PdfProcessor pdf;
    try {
      Map<String, Object> data = new EntityHandlerMap()
      data.put("title", "This is a title");
      data.put("data", "Jan So");

      ArrayList<SampleListEntry> a = new ArrayList<SampleListEntry>();
      SampleListEntry gbe1 = new SampleListEntry("Jan So", "jan.so@java.com", "jTextMarker Author");
      SampleListEntry gbe2 = new SampleListEntry("Albert Eisntein", "albert.einstein@java.com", "Science");
      SampleListEntry gbe3 = new SampleListEntry("Debbie Que", "debbie.que@java.com", "The One");
      SampleListEntry gbe4 = new SampleListEntry("Jill Arroyo", "jill.test@yahoo.com", "Inspiration");
      a.add(gbe1);
      a.add(gbe2);
      ArrayList<SampleListEntry> b = new ArrayList<SampleListEntry>();
      b.add(gbe3);
      b.add(gbe4);

      data.put("list1", a);
      data.put("list2", b);
      String p = "resources/";     
      WaterMark wm = new WaterMark(p+"sample-watermark.png");

      pdf = new PdfProcessor("sample-output.pdf", "sample-template", p, p+"sample-tagmap.xml", data, wm);

      pdf.generatePdf();

      if (pdf.isGenerated()) {
        System.out.println("done..");
      }
    }catch (Exception e) {
      e.printStackTrace();
    }
View Full Code Here

TOP

Related Classes of com.extremelogic.jtextmarker.PdfProcessor

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.