mirror of
https://github.com/UglyToad/PdfPig.git
synced 2026-03-10 00:23:29 +08:00
read last line of ignore file (#1155)
* read last line of ignore file - do not cancel other matrix jobs if one test fails - read all lines of the ignore list even if it doesn't end with a newline - add ignore list for 0008 and 0009 * support missing object numbers when brute-forcing the file 10404 (ironically) contains not found references with number 43 0 for its info dictionary. changes brute-force code so that objects can be entirely missing * fix test since document is now opened successfully but mediabox is broken
This commit is contained in:
@@ -102,8 +102,10 @@
|
||||
{
|
||||
var path = IntegrationHelpers.GetSpecificTestDocumentPath("Hang.pdf");
|
||||
|
||||
var ex = Assert.Throws<PdfDocumentFormatException>(() => PdfDocument.Open(path, new ParsingOptions() { UseLenientParsing = true }));
|
||||
Assert.StartsWith("Could not locate object with reference:", ex.Message);
|
||||
using var doc = PdfDocument.Open(path, new ParsingOptions { UseLenientParsing = true });
|
||||
|
||||
var ex = Assert.Throws<PdfDocumentFormatException>(() => doc.GetPage(1));
|
||||
Assert.StartsWith("Could not find", ex.Message);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
||||
Reference in New Issue
Block a user