List of usage examples for com.itextpdf.text ListItem adjustListSymbolFont
public void adjustListSymbolFont()
From source file:com.masscustsoft.service.ToPdf.java
License:Open Source License
/** * Looks for the List object on the Stack, * and adds the ListItem to the List.//from ww w .j a v a2s . com * @throws DocumentException * @since 5.0.6 */ public void processListItem() throws DocumentException { if (stack.empty()) return; Element obj = stack.pop(); if (!(obj instanceof ListItem)) { stack.push(obj); return; } if (stack.empty()) { document.add(obj); return; } ListItem item = (ListItem) obj; Element list = stack.pop(); if (!(list instanceof com.itextpdf.text.List)) { stack.push(list); return; } ((com.itextpdf.text.List) list).add(item); item.adjustListSymbolFont(); stack.push(list); }