cb.circle(150f, 400f, 150f);
cb.fillStroke();
cb.sanityCheck();
// New page to place image in the pattern painter's canvas
document.newPage();
document.add(new Paragraph(text, FontFactory.getFont(FontFactory.HELVETICA, 60, LwgFont.BOLD, new GrayColor(0.3f))));
document.add(new Paragraph(text, FontFactory.getFont(FontFactory.HELVETICA, 60, LwgFont.BOLD, pat2)));
// The original LwgImage for comparison reason.
// Note: The width and height is the same as bbox in pattern
cb.addImage(img, img.getScaledWidth(), 0f, 0f, img.getScaledHeight(), 350f, 400f);