Examples of HyphenationAuto


Examples of com.lowagie.text.pdf.HyphenationAuto

          + "the other way\u2014in short, the period was so far like the present "
          + "period, that some of its noisiest authorities insisted on its "
          + "being received, for good or for evil, in the superlative degree "
          + "of comparison only.";
      Chunk ck = new Chunk(text);
      HyphenationAuto auto = new HyphenationAuto("en", "GB", 2, 2);
      ck.setHyphenation(auto);
      Paragraph p = new Paragraph(ck);
      p.setAlignment(Paragraph.ALIGN_JUSTIFIED);
      document.add(p);
      document.newPage();
      ck = new Chunk(text);
      auto = new HyphenationAuto("en", "US", 2, 2);
      ck.setHyphenation(auto);
      p = new Paragraph(ck);
      p.setAlignment(Paragraph.ALIGN_JUSTIFIED);
      document.add(p);
    } catch (DocumentException de) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.