Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
Njust.Pdf.Analysis.V4.5
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
陶然
Njust.Pdf.Analysis.V4.5
Commits
c11a1652
Commit
c11a1652
authored
Jun 24, 2021
by
陶然
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化
parent
3687ab4d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
AssemblyInfo.cs
Src/Properties/AssemblyInfo.cs
+1
-1
RestfulAnalyse.cs
Src/Tranforms/RestfulAnalyse.cs
+7
-0
No files found.
Src/Properties/AssemblyInfo.cs
View file @
c11a1652
...
@@ -15,7 +15,7 @@ using System.Runtime.InteropServices;
...
@@ -15,7 +15,7 @@ using System.Runtime.InteropServices;
[assembly: AssemblyCopyright("Copyright © 2021")]
[assembly: AssemblyCopyright("Copyright © 2021")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: AssemblyCulture("")]
[assembly:AssemblyLoadFeature(typeof(AnalyseFeature))]
//
[assembly:AssemblyLoadFeature(typeof(AnalyseFeature))]
// 将 ComVisible 设置为 false 会使此程序集中的类型
// 将 ComVisible 设置为 false 会使此程序集中的类型
//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
...
...
Src/Tranforms/RestfulAnalyse.cs
View file @
c11a1652
...
@@ -455,8 +455,15 @@ namespace Njust.Pdf.Analysis.Tranforms
...
@@ -455,8 +455,15 @@ namespace Njust.Pdf.Analysis.Tranforms
if
(
pdfFile
==
null
)
throw
new
Exception
(
$"未找Pdf文件:
{
item
.
Title
}
,HashCode:
{
item
.
HashCode
}
"
);
if
(
pdfFile
==
null
)
throw
new
Exception
(
$"未找Pdf文件:
{
item
.
Title
}
,HashCode:
{
item
.
HashCode
}
"
);
var
physicalStorageFilePath
=
pdfFile
.
GetPhysicalPath
();
var
physicalStorageFilePath
=
pdfFile
.
GetPhysicalPath
();
if
(!
File
.
Exists
(
physicalStorageFilePath
))
throw
new
Exception
(
$"未找Pdf文件:
{
item
.
Title
}
,HashCode:
{
item
.
HashCode
}
"
);
if
(!
File
.
Exists
(
physicalStorageFilePath
))
throw
new
Exception
(
$"未找Pdf文件:
{
item
.
Title
}
,HashCode:
{
item
.
HashCode
}
"
);
try
{
var
text
=
Kivii
.
PdfBox
.
Instance
.
ReadText
(
physicalStorageFilePath
);
var
text
=
Kivii
.
PdfBox
.
Instance
.
ReadText
(
physicalStorageFilePath
);
item
.
Allbody
=
text
;
item
.
Allbody
=
text
;
}
catch
{
item
.
Allbody
=
"暂时无法读取内容!"
;
}
rtns
.
Results
.
Add
(
item
);
rtns
.
Results
.
Add
(
item
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment