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
2 changes: 1 addition & 1 deletion PdfSharpCore/Pdf.IO/Parser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1012,7 +1012,7 @@ internal PdfTrailer ReadTrailer(PdfReadAccuracy accuracy)
// Implementation note 18 Appendix H:
// Acrobat viewers require only that the %%EOF marker appear somewhere within the last 1024 bytes of the file.
int idx;
if (length < 1030)
if (length <= 1030)
{
// Reading the final 30 bytes should work for all files. But often it does not.
string trail = _lexer.ReadRawString(length - 31, 30); //lexer.Pdf.Substring(length - 30);
Expand Down