|
|
|
@ -0,0 +1,109 @@
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace Myshipping.Application.Service
|
|
|
|
|
{
|
|
|
|
|
public class PDFReadFileResultDto
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 解析回执代码
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int status { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 解析提示信息
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string message { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 解析数据
|
|
|
|
|
/// </summary>
|
|
|
|
|
public PDFReadFileResultDataDto data { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class PDFReadFileResultDataDto
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// PDF文本内容
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string text { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 多页
|
|
|
|
|
/// </summary>
|
|
|
|
|
public object[] coordinate { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class PDFReadFileResultDataCoordinateDto
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 页号
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int PageNum { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 识别明细
|
|
|
|
|
/// </summary>
|
|
|
|
|
public List<PDFReadFileResultDataCoordinateDetailDto> detailList { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class PDFReadFileResultDataCoordinateDetailDto
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 文本内容
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string text { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
public decimal x0 { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
public decimal x1 { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
public decimal top { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
public decimal doctop { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
public decimal bottom { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
public bool upright { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int direction { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 修改后X坐标值(取了最大正整数)
|
|
|
|
|
/// </summary>
|
|
|
|
|
public decimal CorrectX { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 计算列号
|
|
|
|
|
/// </summary>
|
|
|
|
|
public decimal RowSortNo { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 计算行号
|
|
|
|
|
/// </summary>
|
|
|
|
|
public decimal LineSortNo { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|