mirror of
https://github.com/UglyToad/PdfPig.git
synced 2025-04-05 20:55:01 +08:00
add test case for armenian alphabet
This commit is contained in:
parent
9d2b3f914d
commit
7fe5fc2272
Binary file not shown.
@ -0,0 +1,23 @@
|
||||
namespace UglyToad.PdfPig.Tests.Integration;
|
||||
|
||||
using System.Linq;
|
||||
using Xunit;
|
||||
|
||||
public class LittlePigInArmenianTests
|
||||
{
|
||||
[Fact]
|
||||
public void CanReadTextCorrectly()
|
||||
{
|
||||
var path = IntegrationHelpers.GetDocumentPath("little-pig-in-armenian.pdf");
|
||||
|
||||
using var document = PdfDocument.Open(path);
|
||||
|
||||
var page = document.GetPage(1);
|
||||
|
||||
var words = page.GetWords().ToList();
|
||||
|
||||
var textFromWords = string.Join(" ", words.Select(x => x.Text));
|
||||
|
||||
Assert.Equal("փոքրիկ խոզ", textFromWords);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user