Hi,

I have a problem with hyphenation (I use the german "de")

the hyphenation doesen't work ...?

here are the code ...

   *****************code segment ****************************
    
          ColumnText ct2 = new ColumnText();

          Chunk theTextChunk = new Chunk(parse.getHtmlText(), uv47cl10);
          HyphenationAuto autoDE = new HyphenationAuto("de","DR",2,2);
          ct2.addText(theTextChunk.setHyphenation(autoDE));


           int status2 = 0;
           int column2 = 0;    
                     while((status2 & ct2.NO_MORE_TEXT) == 0) {
                         ct2.setSimpleColumn(147.3987f, currentY-8,400f,50f, 
8,Element.ALIGN_JUSTIFIED);                                                
                         status2 = ct2.go();
                         System.out.println("status "+ status2+" NO_MORE_TEXT 
"+ct2.NO_MORE_TEXT);
                         System.out.println("page " + writer.getPageNumber() + " 
column2 " + column2);
                      
                         if(ct2.NO_MORE_COLUMN>1) currentY=ct2.getYLine()-2;
                                 System.out.println("More cols: "+ct2.NO_MORE_COLUMN);
                                 System.out.println("No More Text: "+ct2.NO_MORE_TEXT);
                                 System.out.println("currentY: "+currentY);

                        if(currentY < 50){
                         document.newPage();
                         currentY=523f;
                         pagebreak = 1;
                        }
                      }

   *****************code segment ****************************

    
   

-- 
Thanks and with best regards
Friedhelm Matten
mailto:[EMAIL PROTECTED]



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to