itext - how to count characters overlapping on itextpdf columntext no_more_column -


i'm trying put text (chunk) columntext object longer text can fit in column.. function go() returns no_more_column excepted, how can remaining string not fitting in column? use autohyphenation on column..

code that:

pdfcontentbyte bait=pdfw.getdirectcontent(); bait.savestate(); chunk c=new chunk(text, font); hyphenationauto h=new hyphenationauto("fi", "fi", 2, 2); c.sethyphenation(h); float rowheight=1.3f*font.getsize(); c.setlineheight(rowheight); columntext ct=new columntext(bait);  ct.setsimplecolumn(100, 100, 300, 300); ct.setalignment(com.itextpdf.text.element.align_left); ct.addtext(c); int ret=ct.go(); 

i tried adding chars chunk , trying go() in loop long no_more_column happens, column output not right after that..


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -