Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions src/UglyToad.PdfPig/Filters/FlateFilter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,6 @@ public Memory<byte> Decode(Memory<byte> input, DictionaryToken streamDictionary,
var bitsPerComponent = parameters.GetIntOrDefault(NameToken.BitsPerComponent, DefaultBitsPerComponent);
var columns = parameters.GetIntOrDefault(NameToken.Columns, DefaultColumns);

var length = parameters.GetIntOrDefault(NameToken.Length, -1);

if (length > 0 && length < input.Length)
{
// Truncates final "\r\n" or "\n" from source data if any. Fixes detecting where the adler checksum is. (Zlib uses framing for this)
input = input.Slice(0, length);
}

return Decompress(input, predictor, colors, bitsPerComponent, columns);
}
catch
Expand Down
Loading