Example usage for org.apache.pdfbox.pdmodel.common COSArrayList convertIntegerCOSArrayToList

List of usage examples for org.apache.pdfbox.pdmodel.common COSArrayList convertIntegerCOSArrayToList

Introduction

In this page you can find the example usage for org.apache.pdfbox.pdmodel.common COSArrayList convertIntegerCOSArrayToList.

Prototype

public static List<Integer> convertIntegerCOSArrayToList(COSArray intArray) 

Source Link

Document

This will take an array of COSNumbers and return a COSArrayList of java.lang.Integer values.

Usage

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;
}