mirror of
https://github.com/UglyToad/PdfPig.git
synced 2026-03-10 00:23:29 +08:00
26 lines
988 B
C#
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;
|
|
}
|
|
}
|
|
}
|