Example usage for com.itextpdf.text ListItem setMultipliedLeading

List of usage examples for com.itextpdf.text ListItem setMultipliedLeading

Introduction

In this page you can find the example usage for com.itextpdf.text ListItem setMultipliedLeading.

Prototype

public void setMultipliedLeading(final float multipliedLeading) 

Source Link

Document

Sets the variable leading.

Usage

From source file:com.athena.chameleon.engine.utils.PDFWriterUtil.java

License:Apache License

/**
 * //from   www  . java2 s . co  m
 *  list 
 *
 * @param section list  section ?
 * @param e list   element
 * @throws Exception
 */
public static void setList(Section section, Element e) throws Exception {
    List list = new List(false, 15);
    list.setIndentationLeft(23);
    for (Element e1 : e.getChildren()) {
        ListItem item = new ListItem(e1.getText(), fnNormal);

        if (e1.getChild("url") != null) {
            item.add(getUrl(e1.getChild("url")));
        }

        item.setMultipliedLeading(1.8F);
        list.add(item);
    }
    list.getFirstItem().setSpacingBefore(-14);
    list.getLastItem().setSpacingAfter(14);

    section.add(list);
}