Skip to content

Commit 7fe5fc2

Browse files
committed
add test case for armenian alphabet
1 parent 9d2b3f9 commit 7fe5fc2

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed
Binary file not shown.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
namespace UglyToad.PdfPig.Tests.Integration;
2+
3+
using System.Linq;
4+
using Xunit;
5+
6+
public class LittlePigInArmenianTests
7+
{
8+
[Fact]
9+
public void CanReadTextCorrectly()
10+
{
11+
var path = IntegrationHelpers.GetDocumentPath("little-pig-in-armenian.pdf");
12+
13+
using var document = PdfDocument.Open(path);
14+
15+
var page = document.GetPage(1);
16+
17+
var words = page.GetWords().ToList();
18+
19+
var textFromWords = string.Join(" ", words.Select(x => x.Text));
20+
21+
Assert.Equal("փոքրիկ խոզ", textFromWords);
22+
}
23+
}

0 commit comments

Comments
 (0)