support type 1 normal fonts and fix bug with fetching resource dictionary

This commit is contained in:
Eliot Jones
2018-01-08 21:58:07 +00:00
parent 133ab43d45
commit b1fbcd0ccd
5 changed files with 96 additions and 5 deletions

View File

@@ -133,6 +133,13 @@ namespace UglyToad.Pdf.Graphics
}
else if (parameter.ParameterType == typeof(decimal[]))
{
if (operands[offset] is ArrayToken arr)
{
arguments.Add(arr.Data.OfType<NumericToken>().Select(x => x.Data).ToArray());
offset++;
continue;
}
var array = new List<decimal>();
while (offset < operands.Count && operands[offset] is NumericToken numeric)
{