mirror of
https://github.com/UglyToad/PdfPig.git
synced 2025-09-19 19:07:56 +08:00
Fix format as suggested.
This commit is contained in:
@@ -103,6 +103,7 @@ namespace UglyToad.PdfPig.DocumentLayoutAnalysis
|
|||||||
//Create new leaf with non-whitespace words.
|
//Create new leaf with non-whitespace words.
|
||||||
leaf = new XYLeaf(words);
|
leaf = new XYLeaf(words);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (leaf.CountWords() <= 1 || leaf.BoundingBox.Width <= minimumWidth)
|
if (leaf.CountWords() <= 1 || leaf.BoundingBox.Width <= minimumWidth)
|
||||||
{
|
{
|
||||||
// we stop cutting if
|
// we stop cutting if
|
||||||
@@ -212,7 +213,6 @@ namespace UglyToad.PdfPig.DocumentLayoutAnalysis
|
|||||||
return leaf;
|
return leaf;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// determine dominantFontWidth and dominantFontHeight
|
// determine dominantFontWidth and dominantFontHeight
|
||||||
decimal domFontWidth = dominantFontWidthFunc(words.SelectMany(x => x.Letters)
|
decimal domFontWidth = dominantFontWidthFunc(words.SelectMany(x => x.Letters)
|
||||||
.Select(x => Math.Abs(x.GlyphRectangle.Width)));
|
.Select(x => Math.Abs(x.GlyphRectangle.Width)));
|
||||||
|
Reference in New Issue
Block a user