From d7d01f842e9bbeba3bc5748326df79c18899a250 Mon Sep 17 00:00:00 2001 From: Richard Flamsholt Date: Tue, 30 Sep 2025 18:00:47 +0200 Subject: [PATCH] Update test Issue874: No longer missing a font Including the stream-xref means that the formerly missing font is no longer missing, so simply run the two test-cases under the (stricter) assumption of SkipMissingFonts=false. --- .../Integration/GithubIssuesTests.cs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/UglyToad.PdfPig.Tests/Integration/GithubIssuesTests.cs b/src/UglyToad.PdfPig.Tests/Integration/GithubIssuesTests.cs index 0b9f4be9..8ec94615 100644 --- a/src/UglyToad.PdfPig.Tests/Integration/GithubIssuesTests.cs +++ b/src/UglyToad.PdfPig.Tests/Integration/GithubIssuesTests.cs @@ -472,7 +472,7 @@ { var doc = IntegrationHelpers.GetDocumentPath("ErcotFacts.pdf"); - using (var document = PdfDocument.Open(doc, new ParsingOptions() { UseLenientParsing = true, SkipMissingFonts = true })) + using (var document = PdfDocument.Open(doc, new ParsingOptions() { UseLenientParsing = true, SkipMissingFonts = false })) { var page1 = document.GetPage(1); Assert.Equal(1939, page1.Letters.Count); @@ -480,12 +480,6 @@ var page2 = document.GetPage(2); Assert.Equal(2434, page2.Letters.Count); } - - using (var document = PdfDocument.Open(doc, new ParsingOptions() { UseLenientParsing = true, SkipMissingFonts = false })) - { - var ex = Assert.Throws(() => document.GetPage(1)); - Assert.StartsWith("Value cannot be null.", ex.Message); - } } [Fact]