mirror of
https://github.com/UglyToad/PdfPig.git
synced 2025-10-15 19:54:52 +08:00
skip invalid commands in type 1 command definitions
This commit is contained in:
@@ -83,7 +83,8 @@
|
||||
|
||||
if (command == null)
|
||||
{
|
||||
throw new InvalidOperationException($"Could not find command with code {b}.");
|
||||
// Treat as invalid but skip
|
||||
continue;
|
||||
}
|
||||
|
||||
interpreted.Add(new Union<decimal, LazyType1Command>.Case2(command));
|
||||
|
@@ -34,5 +34,10 @@
|
||||
Subroutine,
|
||||
Charstring
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return $"{Name} {Source} {Index} {Bytes.Count} bytes";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user