Eliminate array allocation in AcroFormFactory

This commit is contained in:
Jason Nelson 2024-04-18 20:20:55 -07:00
parent a80cb0431f
commit 01720e8727

View File

@ -311,7 +311,7 @@
}
else if (DirectObjectFinder.TryGet(textValueToken, tokenScanner, out StreamToken? valueStreamToken))
{
textValue = OtherEncodings.BytesAsLatin1String(valueStreamToken.Decode(filterProvider, tokenScanner).ToArray());
textValue = OtherEncodings.BytesAsLatin1String(valueStreamToken.Decode(filterProvider, tokenScanner).Span);
}
}