Skip to content

Commit 978de7d

Browse files
author
Adam Fausett
committed
support stream length of 1030
1 parent 79c991d commit 978de7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PdfSharpCore/Pdf.IO/Parser.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1012,7 +1012,7 @@ internal PdfTrailer ReadTrailer(PdfReadAccuracy accuracy)
10121012
// Implementation note 18 Appendix H:
10131013
// Acrobat viewers require only that the %%EOF marker appear somewhere within the last 1024 bytes of the file.
10141014
int idx;
1015-
if (length < 1030)
1015+
if (length <= 1030)
10161016
{
10171017
// Reading the final 30 bytes should work for all files. But often it does not.
10181018
string trail = _lexer.ReadRawString(length - 31, 30); //lexer.Pdf.Substring(length - 30);

0 commit comments

Comments
 (0)