Files
PdfPig/src/UglyToad.PdfPig.DocumentLayoutAnalysis/ReadingOrderDetector/DefaultReadingOrderDetector.cs
2020-01-11 11:18:11 +00:00

26 lines
988 B
C#

namespace UglyToad.PdfPig.DocumentLayoutAnalysis.ReadingOrderDetector
{
using System.Collections.Generic;
/// <summary>
/// This detector does nothing, no ordering takes place.
/// </summary>
public class DefaultReadingOrderDetector : IReadingOrderDetector
{
/// <summary>
/// Create an instance of default reading order detector, <see cref="DefaultReadingOrderDetector"/>.
/// <para>This detector does nothing, no ordering takes place.</para>
/// </summary>
public static DefaultReadingOrderDetector Instance { get; } = new DefaultReadingOrderDetector();
/// <summary>
/// Gets the blocks in reading order and sets the <see cref="TextBlock.ReadingOrder"/>.
/// </summary>
/// <param name="textBlocks">The <see cref="TextBlock"/>s to order.</param>
public IEnumerable<TextBlock> Get(IReadOnlyList<TextBlock> textBlocks)
{
return textBlocks;
}
}
}