mirror of
https://github.com/UglyToad/PdfPig.git
synced 2025-10-07 16:14:03 +08:00
Update test Issue874: No longer missing a font
Some checks failed
Build, test and publish draft / build (push) Has been cancelled
Build and test [MacOS] / build (push) Has been cancelled
Run Common Crawl Tests / build (0000-0001) (push) Has been cancelled
Run Common Crawl Tests / build (0002-0003) (push) Has been cancelled
Run Common Crawl Tests / build (0004-0005) (push) Has been cancelled
Run Common Crawl Tests / build (0006-0007) (push) Has been cancelled
Run Integration Tests / build (push) Has been cancelled
Nightly Release / Check if this commit has already been published (push) Has been cancelled
Nightly Release / tests (push) Has been cancelled
Nightly Release / build_and_publish_nightly (push) Has been cancelled
Some checks failed
Build, test and publish draft / build (push) Has been cancelled
Build and test [MacOS] / build (push) Has been cancelled
Run Common Crawl Tests / build (0000-0001) (push) Has been cancelled
Run Common Crawl Tests / build (0002-0003) (push) Has been cancelled
Run Common Crawl Tests / build (0004-0005) (push) Has been cancelled
Run Common Crawl Tests / build (0006-0007) (push) Has been cancelled
Run Integration Tests / build (push) Has been cancelled
Nightly Release / Check if this commit has already been published (push) Has been cancelled
Nightly Release / tests (push) Has been cancelled
Nightly Release / build_and_publish_nightly (push) Has been cancelled
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.
This commit is contained in:
@@ -472,7 +472,7 @@
|
|||||||
{
|
{
|
||||||
var doc = IntegrationHelpers.GetDocumentPath("ErcotFacts.pdf");
|
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);
|
var page1 = document.GetPage(1);
|
||||||
Assert.Equal(1939, page1.Letters.Count);
|
Assert.Equal(1939, page1.Letters.Count);
|
||||||
@@ -480,12 +480,6 @@
|
|||||||
var page2 = document.GetPage(2);
|
var page2 = document.GetPage(2);
|
||||||
Assert.Equal(2434, page2.Letters.Count);
|
Assert.Equal(2434, page2.Letters.Count);
|
||||||
}
|
}
|
||||||
|
|
||||||
using (var document = PdfDocument.Open(doc, new ParsingOptions() { UseLenientParsing = true, SkipMissingFonts = false }))
|
|
||||||
{
|
|
||||||
var ex = Assert.Throws<ArgumentNullException>(() => document.GetPage(1));
|
|
||||||
Assert.StartsWith("Value cannot be null.", ex.Message);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[Fact]
|
[Fact]
|
||||||
|
Reference in New Issue
Block a user