Skip to content

Commit f2b94f9

Browse files
committed
PDFBOX-5915: 19 and 20 are one byte commands
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1922245 13f79535-47bb-0310-9956-ffa450edef68
1 parent 68c0c80 commit f2b94f9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

fontbox/src/main/java/org/apache/fontbox/cff/CharStringCommand.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,11 @@ public static CharStringCommand getInstance(int b0, int b1)
152152
*/
153153
public static CharStringCommand getInstance(int[] values)
154154
{
155+
if (values[0] == 19 || values[0] == 20)
156+
{
157+
//TODO store the rest (hintmask and cntrmask) if we ever process these.
158+
return getInstance(values[0]);
159+
}
155160
switch (values.length)
156161
{
157162
case 1:

0 commit comments

Comments
 (0)