diff --git a/MagicBytesValidator/Formats/Pdf.cs b/MagicBytesValidator/Formats/Pdf.cs index 76dcae6..2bcfe5f 100644 --- a/MagicBytesValidator/Formats/Pdf.cs +++ b/MagicBytesValidator/Formats/Pdf.cs @@ -12,11 +12,12 @@ public Pdf() : base( StartsWith([0x25, 0x50, 0x44, 0x46, 0x2D]) .EndsWithAnyOf( [ - [0x0A, 0x25, 0x25, 0x25, 0x45, 0x4F, 0x46], + [0x0A, 0x25, 0x25, 0x45, 0x4F, 0x46], [0x0A, 0x25, 0x25, 0x45, 0x4F, 0x46, 0x0A], + [0x0A, 0x25, 0x25, 0x45, 0x4F, 0x46, 0x0A, 0x20], [0x0D, 0x0A, 0x25, 0x25, 0x45, 0x4F, 0x46, 0x0D, 0x0A], - [0x0D, 0x25, 0x25, 0x45, 0x4F, 0x46, 0x0D], - [0x20, 0x0a, 0x25, 0x25, 0x45, 0x4f, 0x46, 0x0d, 0x0a] + [0x0D, 0x25, 0x25, 0x45, 0x4F, 0x46, 0x0D], /* looks strange, but garykessler says so. */ + [0x0A, 0x25, 0x25, 0x45, 0x4F, 0x46, 0x0D, 0x0A], ]); } } \ No newline at end of file