Skip to content

Commit e4d7805

Browse files
committed
Add test to ensure #822 is fixed
1 parent 6911f31 commit e4d7805

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

src/UglyToad.PdfPig.Tests/Integration/GithubIssuesTests.cs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,21 @@
77

88
public class GithubIssuesTests
99
{
10+
[Fact]
11+
public void Issue822()
12+
{
13+
var path = IntegrationHelpers.GetSpecificTestDocumentPath("FileData_7.pdf");
14+
15+
using (var document = PdfDocument.Open(path, new ParsingOptions() { UseLenientParsing = true }))
16+
{
17+
for (int p = 1; p <= document.NumberOfPages; p++)
18+
{
19+
var page = document.GetPage(p);
20+
Assert.NotNull(page.Letters);
21+
}
22+
}
23+
}
24+
1025
[Fact]
1126
public void Issue1040()
1227
{
Binary file not shown.

0 commit comments

Comments
 (0)