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);