From ce38238f2c6cf096a1275c2ea8bbfa6941e7b2bd Mon Sep 17 00:00:00 2001 From: Eliot Jones Date: Tue, 24 Dec 2019 16:56:46 +0000 Subject: [PATCH] ignore invalid minfeature values for type 1 fonts --- .../Type1/Parser/Type1EncryptedPortionParser.cs | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/UglyToad.PdfPig/Fonts/Type1/Parser/Type1EncryptedPortionParser.cs b/src/UglyToad.PdfPig/Fonts/Type1/Parser/Type1EncryptedPortionParser.cs index ed8b6a9f..c16c5fbc 100644 --- a/src/UglyToad.PdfPig/Fonts/Type1/Parser/Type1EncryptedPortionParser.cs +++ b/src/UglyToad.PdfPig/Fonts/Type1/Parser/Type1EncryptedPortionParser.cs @@ -156,18 +156,6 @@ { var procedureTokens = ReadProcedure(tokenizer); - if (!isLenientParsing) - { - var valid = procedureTokens.Count == 2 && procedureTokens[0].AsInt() == 16 - && procedureTokens[1].AsInt() == 16; - - if (!valid) - { - var valueMessage = $"{{ {string.Join(", ", procedureTokens.Select(x => x.ToString()))} }}"; - throw new InvalidOperationException($"Type 1 font MinFeature should be {{16,16}} but got: {valueMessage}."); - } - } - builder.MinFeature = new MinFeature(procedureTokens[0].AsInt(), procedureTokens[1].AsInt()); ReadTillDef(tokenizer);