cb.lineTo(400f, 150f);
cb.fill();
// cb.sanityCheck is called during newPage().
document.newPage();
String text = "Some text to show";
document.add(new Paragraph(text, new LwgFont(LwgFont.HELVETICA, 24, LwgFont.NORMAL, new SpotColor(spc_cmyk, 0.25f))));
document.add(new Paragraph(text, new LwgFont(LwgFont.HELVETICA, 24, LwgFont.NORMAL, new SpotColor(spc_cmyk, 0.5f))));
// example with template
PdfTemplate t = cb.createTemplate(500f, 500f);
// Stroke a rectangle with CMYK alternate
t.setColorStroke(new SpotColor(spc_cmyk, .5f));
t.setLineWidth(10f);
// draw a rectangle
t.rectangle(100, 10, 100, 100);
// add the diagonal
t.moveTo(100, 10);