We can rotate the text in which direction we want., Using skew() in iText.
There we can give some text design and good look for our input text....
Paragraph p = new Paragraph("Ram");
document.add(p);
Chunk chunk = new Chunk("Raj");
chunk.setSkew(45f, 0f);
document.add(chunk);
document.add(Chunk.NEWLINE);
chunk.setSkew(0f, 45f);
document.add(chunk);
document.add(Chunk.NEWLINE);
chunk.setSkew(-45f, 0f);
document.add(chunk);
No comments:
Post a Comment