Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0.15
-
None
Description
The following code fails in PDLineDashPattern as Arrays.asList doesn't work as expected with primitive arrays.
public COSBase getCOSObject() { COSArray cos = new COSArray(); cos.add(COSArrayList.converterToCOSArray(Arrays.asList(array))); cos.add(COSInteger.get(phase)); return cos; }
The array should be converted using:
COSArray patternArray = new COSArray();
patternArray.setFloatArray(array);
cos.add(patternArray);
Attachments
Issue Links
- relates to
-
PDFBOX-1939 Store all stroke information in the graphics state
- Closed