Friday, December 30, 2011

Make Text - SubText - Subsub Text (1, 1.1, 1.1.1)

Here the Chunk class has different type of functions for manipulating our Input text in PDF.

There is an very useful function for putting the hierarchical numbering in our PDF... Which is in below.,

document.open();
Chunk c1,c2,c3;
c1 = new Chunk("Ram");
c1.setTextRise(7.0f);
document.add(c1);
c2 = new Chunk("Raj");
c2.setTextRise(3.0f);
document.add(c2);
c3 = new Chunk(".java");
c3.setTextRise(-2.0f);
document.add(c3);
document.close();

No comments:

Post a Comment