mirror of
https://github.com/UglyToad/PdfPig.git
synced 2026-03-10 00:23:29 +08:00
Assess if transformedGlyphBounds and use transformedPdfBounds as fallback and fix #987
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user