-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAnalyzeResult.cs
More file actions
51 lines (46 loc) · 1.18 KB
/
AnalyzeResult.cs
File metadata and controls
51 lines (46 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
namespace PdfIntoTextPieces;
public class Word
{
/// <summary>
/// Quadrangle bounding box of a word, specifed as a list of 8 numbers.
/// The 8 numbers represent the four points,clockwise from the top-left
/// corner relative to the text orientation.
/// </summary>
IEnumerable<float>? boundingBox;
/// <summary>
/// The text content of a word
/// </summary>
string? text;
}
public class Line
{
/// <summary>
/// List of words in the text line
/// </summary>
// public IEnumerable<Word> words;
public IEnumerable<double>? boundingBox;
public string? text;
}
public class ReadResult
{
/// <summary>
/// List of text lines.
/// </summary>
public IEnumerable<Line>? lines;
/// <summary>
/// The 1-based page number in the input document.
/// </summary>
public int page;
/// <summary>
/// The width of the image/PDF in pixels/inches, respectively.
/// </summary>
public double width;
/// <summary>
/// The height of the image/PDF in pixels/inches, respectively.
/// </summary>
public double height;
}
public class AnalyzeResult
{
public IEnumerable<ReadResult>? readResults;
}