List of usage examples for org.apache.pdfbox.pdmodel.common COSArrayList convertIntegerCOSArrayToList
public static List<Integer> convertIntegerCOSArrayToList(COSArray intArray)
From source file:org.apache.fop.render.pdf.pdfbox.FontContainer.java
License:Apache License
List<Integer> getWidths() {
if (widths == null) {
COSArray array = (COSArray) dict.getDictionaryObject(COSName.WIDTHS);
if (array != null) {
widths = COSArrayList.convertIntegerCOSArrayToList(array);
} else {//from w w w.j ava2 s. co m
widths = Collections.emptyList();
}
}
return widths;
}