Assess if transformedGlyphBounds and use transformedPdfBounds as fallback and fix #987
Some checks are pending
Build and test / build (push) Waiting to run
Run Integration Tests / build (push) Waiting to run

This commit is contained in:
BobLd
2025-02-18 20:04:33 +00:00
parent 1298356f10
commit 5a06e1e1cc
3 changed files with 31 additions and 6 deletions

View File

@@ -7,6 +7,23 @@
public class GithubIssuesTests
{
[Fact]
public void Issue987()
{
var path = IntegrationHelpers.GetSpecificTestDocumentPath("zeroheightdemo.pdf");
using (var document = PdfDocument.Open(path))
{
var page = document.GetPage(1);
var words = page.GetWords().ToArray();
foreach (var word in words)
{
Assert.True(word.BoundingBox.Width > 0);
Assert.True(word.BoundingBox.Height > 0);
}
}
}
[Fact]
public void Issue982()
{