From f347abe96719829ba96398be4a9ca3dfa4916139 Mon Sep 17 00:00:00 2001 From: jianghaiqing Date: Wed, 20 Sep 2023 11:18:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=A0=BC=E5=BC=8F=E5=8D=95?= =?UTF-8?q?=E6=AF=94=E5=AF=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Dtos/PDFReadFileResultDto.cs | 109 ++++++++++++++++++ 1 file changed, 109 insertions(+) create mode 100644 Myshipping.Application/Service/TaskManagePlat/Dtos/PDFReadFileResultDto.cs diff --git a/Myshipping.Application/Service/TaskManagePlat/Dtos/PDFReadFileResultDto.cs b/Myshipping.Application/Service/TaskManagePlat/Dtos/PDFReadFileResultDto.cs new file mode 100644 index 00000000..48967211 --- /dev/null +++ b/Myshipping.Application/Service/TaskManagePlat/Dtos/PDFReadFileResultDto.cs @@ -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 + { + /// + /// 解析回执代码 + /// + public int status { get; set; } + + /// + /// 解析提示信息 + /// + public string message { get; set; } + + /// + /// 解析数据 + /// + public PDFReadFileResultDataDto data { get; set; } + } + + public class PDFReadFileResultDataDto + { + /// + /// PDF文本内容 + /// + public string text { get; set; } + + /// + /// 多页 + /// + public object[] coordinate { get; set; } + } + + public class PDFReadFileResultDataCoordinateDto + { + /// + /// 页号 + /// + public int PageNum { get; set; } + /// + /// 识别明细 + /// + public List detailList { get; set; } + } + + public class PDFReadFileResultDataCoordinateDetailDto + { + /// + /// 文本内容 + /// + public string text { get; set; } + + /// + /// + /// + public decimal x0 { get; set; } + + /// + /// + /// + public decimal x1 { get; set; } + + /// + /// + /// + public decimal top { get; set; } + + /// + /// + /// + public decimal doctop { get; set; } + + /// + /// + /// + public decimal bottom { get; set; } + + /// + /// + /// + public bool upright { get; set; } + + /// + /// + /// + public int direction { get; set; } + + /// + /// 修改后X坐标值(取了最大正整数) + /// + public decimal CorrectX { get; set; } + + /// + /// 计算列号 + /// + public decimal RowSortNo { get; set; } + + /// + /// 计算行号 + /// + public decimal LineSortNo { get; set; } + } +}