mirror of
https://github.com/UglyToad/PdfPig.git
synced 2025-11-24 16:53:20 +08:00
handle type 1 parser already being at def token when reading till next def token
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
}
|
||||
|
||||
var decrypted = Decrypt(bytes, EexecEncryptionKey, EexecRandomBytes);
|
||||
|
||||
|
||||
var tokenizer = new Type1Tokenizer(new ByteArrayInputBytes(decrypted));
|
||||
|
||||
/*
|
||||
@@ -481,6 +481,11 @@
|
||||
|
||||
private static void ReadTillDef(Type1Tokenizer tokenizer, bool skip = false)
|
||||
{
|
||||
if (string.Equals(tokenizer.CurrentToken.Text, "def", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
Type1Token token;
|
||||
while ((token = tokenizer.GetNext()) != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user