|
|
@@ -217,39 +217,35 @@ public class ArchiveExaminingReportImpl extends BaseServiceImpl<ArchiveExamining
|
|
|
map.put("unqualifiedObject", file.getFileName());
|
|
|
mapList.add(map);
|
|
|
fileIsAccess++;
|
|
|
- detailService.save(new ArchiveExaminingReportDetail(vo.getProjectId(), id, ArchiveConstant.ARCHIVE_EXAMINING_USABILITY,
|
|
|
- ArchiveConstant.ARCHIVE_EXAMINING_STANDARD + "对电子档案内容数据的可读性检测", fileIsAccess, fileIsAccess == 0 ? "无" : "详见附件", fileIsAccess == 0 ? 0 : 1));
|
|
|
continue;
|
|
|
}
|
|
|
//真实性
|
|
|
if (StringUtils.isNotBlank(vo.getAuthenticity()) && "1".equals(vo.getAuthenticity())) {
|
|
|
//获取文件数字摘要
|
|
|
- RemoteFileMD5Calculator.MD5Result remoteFileMD5FromHeaders = RemoteFileMD5Calculator.getRemoteFileMD5FromHeaders(file.getPdfFileUrl());
|
|
|
- String md5Hash = remoteFileMD5FromHeaders.getMd5Hash();
|
|
|
+ RemoteFileMD5Calculator.MD5Result fileUrL = RemoteFileMD5Calculator.getRemoteFileMD5FromHeaders(file.getFileUrl());
|
|
|
+ RemoteFileMD5Calculator.MD5Result pdfFileUrl = RemoteFileMD5Calculator.getRemoteFileMD5FromHeaders(file.getPdfFileUrl());
|
|
|
+ String fileMd5 = fileUrL.getMd5Hash();
|
|
|
+ String pdfMd5 = pdfFileUrl.getMd5Hash();
|
|
|
if(vo.getAuthenticityList().contains("1")){
|
|
|
//检测项目下所有工序资料PDF签章有效性
|
|
|
CertBeanVO cb = eVisaClient.onlineCheckSeal(file.getPdfFileUrl());
|
|
|
//数字摘要判断和电签
|
|
|
- if (cb == null || !file.getFileName().equals(md5Hash)) {
|
|
|
+ if (cb == null || !file.getFileMd5().equals(fileMd5) || !file.getPdfMd5().equals(pdfMd5)) {
|
|
|
Map<String, String> map = new HashMap<>();
|
|
|
map.put("examiningItem", ArchiveConstant.ARCHIVE_EXAMINING_STANDARD + "对固化信息有效性检测");
|
|
|
map.put("unqualifiedObject", file.getFileName());
|
|
|
mapList.add(map);
|
|
|
unqualifiedCount++;
|
|
|
}
|
|
|
- detailService.save(new ArchiveExaminingReportDetail(vo.getProjectId(), id, ArchiveConstant.ARCHIVE_EXAMINING_AUTHENTICITY,
|
|
|
- ArchiveConstant.ARCHIVE_EXAMINING_STANDARD + "对固化信息有效性检测", unqualifiedCount, unqualifiedCount == 0 ? "无" : "详见附件", unqualifiedCount == 0 ? 0 : 1));
|
|
|
}
|
|
|
if(vo.getAuthenticityList().contains("2")){
|
|
|
- if (!file.getFileName().equals(md5Hash)) {
|
|
|
+ if (!file.getFileMd5().equals(fileMd5) || !file.getPdfMd5().equals(pdfMd5)) {
|
|
|
Map<String, String> map = new HashMap<>();
|
|
|
map.put("examiningItem", ArchiveConstant.ARCHIVE_EXAMINING_STANDARD + "对固化信息有效性检测");
|
|
|
map.put("unqualifiedObject", file.getFileName());
|
|
|
mapList.add(map);
|
|
|
consistency++;
|
|
|
}
|
|
|
- detailService.save(new ArchiveExaminingReportDetail(vo.getProjectId(), id, ArchiveConstant.ARCHIVE_EXAMINING_AUTHENTICITY,
|
|
|
- ArchiveConstant.ARCHIVE_EXAMINING_STANDARD + "对电子文件内容一致性检测", consistency, consistency == 0 ? "无" : "详见附件", consistency == 0 ? 0 : 1));
|
|
|
}
|
|
|
if(vo.getAuthenticityList().contains("3")){}
|
|
|
if(vo.getAuthenticityList().contains("4")){}
|
|
|
@@ -262,8 +258,7 @@ public class ArchiveExaminingReportImpl extends BaseServiceImpl<ArchiveExamining
|
|
|
mapList.add(map);
|
|
|
metadataCompliance++;
|
|
|
}
|
|
|
- detailService.save(new ArchiveExaminingReportDetail(vo.getProjectId(), id, ArchiveConstant.ARCHIVE_EXAMINING_AUTHENTICITY,
|
|
|
- ArchiveConstant.ARCHIVE_EXAMINING_STANDARD + "对设定值域的元数据项值域符合度检测", metadataCompliance, metadataCompliance == 0 ? "无" : "详见附件", metadataCompliance == 0 ? 0 : 1));
|
|
|
+
|
|
|
}
|
|
|
if(vo.getAuthenticityList().contains("6")){
|
|
|
//获取元数据
|
|
|
@@ -290,14 +285,11 @@ public class ArchiveExaminingReportImpl extends BaseServiceImpl<ArchiveExamining
|
|
|
metadataRepeat++;
|
|
|
}
|
|
|
}
|
|
|
- detailService.save(new ArchiveExaminingReportDetail(vo.getProjectId(), id, ArchiveConstant.ARCHIVE_EXAMINING_AUTHENTICITY,
|
|
|
- ArchiveConstant.ARCHIVE_EXAMINING_STANDARD + "对元数据项数据重复性检测", metadataRepeat, metadataRepeat == 0 ? "无" : "详见附件", metadataRepeat == 0 ? 0 : 1));
|
|
|
+
|
|
|
}
|
|
|
if(vo.getAuthenticityList().contains("7")){}
|
|
|
if(vo.getAuthenticityList().contains("8")){
|
|
|
//TODO
|
|
|
- detailService.save(new ArchiveExaminingReportDetail(vo.getProjectId(), id, ArchiveConstant.ARCHIVE_EXAMINING_AUTHENTICITY,
|
|
|
- ArchiveConstant.ARCHIVE_EXAMINING_STANDARD + "对信息包一致性检测", 0, "无", 0));
|
|
|
}
|
|
|
if(vo.getAuthenticityList().contains("9")){}
|
|
|
if(vo.getAuthenticityList().contains("10")){}
|
|
|
@@ -307,9 +299,9 @@ public class ArchiveExaminingReportImpl extends BaseServiceImpl<ArchiveExamining
|
|
|
//完整性
|
|
|
if (StringUtils.isNotBlank(vo.getIntegrality()) && "1".equals(vo.getIntegrality())) {
|
|
|
Thread.sleep(5000L);
|
|
|
- if(vo.getAuthenticityList().contains("1")){}
|
|
|
- if(vo.getAuthenticityList().contains("2")){}
|
|
|
- if(vo.getAuthenticityList().contains("3")){
|
|
|
+ if(vo.getIntegralityList().contains("1")){}
|
|
|
+ if(vo.getIntegralityList().contains("2")){}
|
|
|
+ if(vo.getIntegralityList().contains("3")){
|
|
|
//获取元数据
|
|
|
if(CollectionUtil.isEmpty(list)){
|
|
|
Map<String, String> map = new HashMap<>();
|
|
|
@@ -332,10 +324,8 @@ public class ArchiveExaminingReportImpl extends BaseServiceImpl<ArchiveExamining
|
|
|
metadataComplete++;
|
|
|
}
|
|
|
}
|
|
|
- detailService.save(new ArchiveExaminingReportDetail(vo.getProjectId(), id, ArchiveConstant.ARCHIVE_EXAMINING_INTEGRALITY,
|
|
|
- ArchiveConstant.ARCHIVE_EXAMINING_STANDARD + "对元数据项完整性检测", metadataComplete, metadataComplete == 0 ? "无" : "详见附件", metadataComplete == 0 ? 0 : 1));
|
|
|
}
|
|
|
- if(vo.getAuthenticityList().contains("4")){
|
|
|
+ if(vo.getIntegralityList().contains("4")){
|
|
|
//获取元数据
|
|
|
if(CollectionUtil.isEmpty(list)){
|
|
|
Map<String, String> map = new HashMap<>();
|
|
|
@@ -361,20 +351,19 @@ public class ArchiveExaminingReportImpl extends BaseServiceImpl<ArchiveExamining
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- detailService.save(new ArchiveExaminingReportDetail(vo.getProjectId(), id, ArchiveConstant.ARCHIVE_EXAMINING_INTEGRALITY,
|
|
|
- ArchiveConstant.ARCHIVE_EXAMINING_STANDARD + "对元数据必填项检测", metadataRequiredField, metadataRequiredField == 0 ? "无" : "详见附件", metadataRequiredField == 0 ? 0 : 1));
|
|
|
+
|
|
|
}
|
|
|
- if(vo.getAuthenticityList().contains("5")){}
|
|
|
- if(vo.getAuthenticityList().contains("6")){}
|
|
|
- if(vo.getAuthenticityList().contains("7")){}
|
|
|
- if(vo.getAuthenticityList().contains("8")){}
|
|
|
+ if(vo.getIntegralityList().contains("5")){}
|
|
|
+ if(vo.getIntegralityList().contains("6")){}
|
|
|
+ if(vo.getIntegralityList().contains("7")){}
|
|
|
+ if(vo.getIntegralityList().contains("8")){}
|
|
|
report.setReportDetailStatus(2);
|
|
|
this.updateById(report);
|
|
|
}
|
|
|
//可用性
|
|
|
if (StringUtils.isNotBlank(vo.getUsability()) && "1".equals(vo.getUsability())) {
|
|
|
Thread.sleep(5000L);
|
|
|
- if(vo.getAuthenticityList().contains("1")){
|
|
|
+ if(vo.getUsabilityList().contains("1")){
|
|
|
//获取文件后缀,后缀为
|
|
|
String fileExtensionFromUrl = RemoteFileExtension.getFileExtensionFromUrl(file.getPdfFileUrl());
|
|
|
if(StringUtils.isEmpty(fileExtensionFromUrl) || !strings.contains(fileExtensionFromUrl)){
|
|
|
@@ -384,60 +373,118 @@ public class ArchiveExaminingReportImpl extends BaseServiceImpl<ArchiveExamining
|
|
|
mapList.add(map);
|
|
|
fileType++;
|
|
|
}
|
|
|
- detailService.save(new ArchiveExaminingReportDetail(vo.getProjectId(), id, ArchiveConstant.ARCHIVE_EXAMINING_USABILITY,
|
|
|
- ArchiveConstant.ARCHIVE_EXAMINING_STANDARD + "对电子文件格式检测", fileType, fileType == 0 ? "无" : "详见附件", fileType == 0 ? 0 : 1));
|
|
|
+
|
|
|
}
|
|
|
//3-2 放在最开始
|
|
|
- if(vo.getAuthenticityList().contains("3")){
|
|
|
- detailService.save(new ArchiveExaminingReportDetail(vo.getProjectId(), id, ArchiveConstant.ARCHIVE_EXAMINING_USABILITY,
|
|
|
- ArchiveConstant.ARCHIVE_EXAMINING_STANDARD + "对目标数据库中的元数据可访问性检测", 0, "无", 0));
|
|
|
+ if(vo.getUsabilityList().contains("3")){
|
|
|
+
|
|
|
}
|
|
|
- if(vo.getAuthenticityList().contains("4")){
|
|
|
- detailService.save(new ArchiveExaminingReportDetail(vo.getProjectId(), id, ArchiveConstant.ARCHIVE_EXAMINING_USABILITY,
|
|
|
- ArchiveConstant.ARCHIVE_EXAMINING_STANDARD + "对信息包中元数据可读性检测", 0, "无", 0));
|
|
|
+ if(vo.getUsabilityList().contains("4")){
|
|
|
+
|
|
|
}
|
|
|
- if(vo.getAuthenticityList().contains("5")){
|
|
|
+ if(vo.getUsabilityList().contains("5")){
|
|
|
//TODO
|
|
|
- detailService.save(new ArchiveExaminingReportDetail(vo.getProjectId(), id, ArchiveConstant.ARCHIVE_EXAMINING_USABILITY,
|
|
|
- ArchiveConstant.ARCHIVE_EXAMINING_STANDARD + "对信息包中包含的内容数据合规性检测", 0, "无", 0));
|
|
|
}
|
|
|
- if(vo.getAuthenticityList().contains("6")){}
|
|
|
+ if(vo.getUsabilityList().contains("6")){}
|
|
|
report.setReportDetailStatus(3);
|
|
|
this.updateById(report);
|
|
|
}
|
|
|
//安全性
|
|
|
if (StringUtils.isNotBlank(vo.getSecurity()) && "1".equals(vo.getSecurity())) {
|
|
|
- if(vo.getAuthenticityList().contains("1")){
|
|
|
- ClamAVClientScanner clamAVClientScanner = new ClamAVClientScanner();
|
|
|
- if(!clamAVClientScanner.checkHealth() || !ClamAVClientScanner.scanRemoteFile(file.getPdfFileUrl())){
|
|
|
+ if(vo.getSecurityList().contains("1")){
|
|
|
+ if(!ClamAVClientScanner.checkHealth() || !ClamAVClientScanner.scanRemoteFile(file.getPdfFileUrl())){
|
|
|
Map<String, String> map = new HashMap<>();
|
|
|
map.put("examiningItem", ArchiveConstant.ARCHIVE_EXAMINING_STANDARD + "对电子文件格式检测");
|
|
|
map.put("unqualifiedObject", file.getFileName());
|
|
|
mapList.add(map);
|
|
|
virusDetection++;
|
|
|
}
|
|
|
- detailService.save(new ArchiveExaminingReportDetail(vo.getProjectId(), id, ArchiveConstant.ARCHIVE_EXAMINING_SECURITY,
|
|
|
- ArchiveConstant.ARCHIVE_EXAMINING_STANDARD + "对病毒感染检测", virusDetection, virusDetection == 0 ? "无" : "详见附件", virusDetection == 0 ? 0 : 1));
|
|
|
}
|
|
|
- if(vo.getAuthenticityList().contains("2")){}
|
|
|
- if(vo.getAuthenticityList().contains("3")){
|
|
|
- ClamAVClientScanner clamAVClientScanner = new ClamAVClientScanner();
|
|
|
- if(!clamAVClientScanner.checkHealth()){
|
|
|
+ if(vo.getSecurityList().contains("2")){}
|
|
|
+ if(vo.getSecurityList().contains("3")){
|
|
|
+ if(!ClamAVClientScanner.checkHealth()){
|
|
|
Map<String, String> map = new HashMap<>();
|
|
|
map.put("examiningItem", ArchiveConstant.ARCHIVE_EXAMINING_STANDARD + "对电子文件格式检测");
|
|
|
map.put("unqualifiedObject", file.getFileName());
|
|
|
mapList.add(map);
|
|
|
virusInstall++;
|
|
|
}
|
|
|
- detailService.save(new ArchiveExaminingReportDetail(vo.getProjectId(), id, ArchiveConstant.ARCHIVE_EXAMINING_SECURITY,
|
|
|
- ArchiveConstant.ARCHIVE_EXAMINING_STANDARD + "对系统环境中是否安装杀毒软件检测", virusInstall, virusInstall == 0 ? "无" : "详见附件", virusInstall == 0 ? 0 : 1));
|
|
|
}
|
|
|
- if(vo.getAuthenticityList().contains("4")){}
|
|
|
+ if(vo.getSecurityList().contains("4")){}
|
|
|
report.setReportDetailStatus(4);
|
|
|
this.updateById(report);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ //可用性
|
|
|
+ if(StringUtils.isNotBlank(vo.getUsability()) && "1".equals(vo.getUsability())){
|
|
|
+ if(vo.getUsabilityList().contains("1")){
|
|
|
+ detailService.save(new ArchiveExaminingReportDetail(vo.getProjectId(), id, ArchiveConstant.ARCHIVE_EXAMINING_USABILITY,
|
|
|
+ ArchiveConstant.ARCHIVE_EXAMINING_STANDARD + "对电子文件格式检测", fileType, fileType == 0 ? "无" : "详见附件", fileType == 0 ? 0 : 1));
|
|
|
+ }
|
|
|
+ if(vo.getUsabilityList().contains("2")){
|
|
|
+ detailService.save(new ArchiveExaminingReportDetail(vo.getProjectId(), id, ArchiveConstant.ARCHIVE_EXAMINING_USABILITY,
|
|
|
+ ArchiveConstant.ARCHIVE_EXAMINING_STANDARD + "对电子档案内容数据的可读性检测", fileIsAccess, fileIsAccess == 0 ? "无" : "详见附件", fileIsAccess == 0 ? 0 : 1));
|
|
|
+ }
|
|
|
+ if(vo.getUsabilityList().contains("3")){
|
|
|
+ detailService.save(new ArchiveExaminingReportDetail(vo.getProjectId(), id, ArchiveConstant.ARCHIVE_EXAMINING_USABILITY,
|
|
|
+ ArchiveConstant.ARCHIVE_EXAMINING_STANDARD + "对目标数据库中的元数据可访问性检测", 0, "无", 0));
|
|
|
+ }
|
|
|
+ if(vo.getUsabilityList().contains("4")){
|
|
|
+ detailService.save(new ArchiveExaminingReportDetail(vo.getProjectId(), id, ArchiveConstant.ARCHIVE_EXAMINING_USABILITY,
|
|
|
+ ArchiveConstant.ARCHIVE_EXAMINING_STANDARD + "对信息包中元数据可读性检测", 0, "无", 0));
|
|
|
+ }
|
|
|
+ if(vo.getUsabilityList().contains("5")){
|
|
|
+ detailService.save(new ArchiveExaminingReportDetail(vo.getProjectId(), id, ArchiveConstant.ARCHIVE_EXAMINING_USABILITY,
|
|
|
+ ArchiveConstant.ARCHIVE_EXAMINING_STANDARD + "对信息包中包含的内容数据合规性检测", 0, "无", 0));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ //真实性
|
|
|
+ if (StringUtils.isNotBlank(vo.getAuthenticity()) && "1".equals(vo.getAuthenticity())) {
|
|
|
+ if(vo.getAuthenticityList().contains("1")){
|
|
|
+ detailService.save(new ArchiveExaminingReportDetail(vo.getProjectId(), id, ArchiveConstant.ARCHIVE_EXAMINING_AUTHENTICITY,
|
|
|
+ ArchiveConstant.ARCHIVE_EXAMINING_STANDARD + "对固化信息有效性检测", unqualifiedCount, unqualifiedCount == 0 ? "无" : "详见附件", unqualifiedCount == 0 ? 0 : 1));
|
|
|
+ }
|
|
|
+ if(vo.getAuthenticityList().contains("2")){
|
|
|
+ detailService.save(new ArchiveExaminingReportDetail(vo.getProjectId(), id, ArchiveConstant.ARCHIVE_EXAMINING_AUTHENTICITY,
|
|
|
+ ArchiveConstant.ARCHIVE_EXAMINING_STANDARD + "对电子文件内容一致性检测", consistency, consistency == 0 ? "无" : "详见附件", consistency == 0 ? 0 : 1));
|
|
|
+ }
|
|
|
+ if(vo.getAuthenticityList().contains("5")){
|
|
|
+ detailService.save(new ArchiveExaminingReportDetail(vo.getProjectId(), id, ArchiveConstant.ARCHIVE_EXAMINING_AUTHENTICITY,
|
|
|
+ ArchiveConstant.ARCHIVE_EXAMINING_STANDARD + "对设定值域的元数据项值域符合度检测", metadataCompliance, metadataCompliance == 0 ? "无" : "详见附件", metadataCompliance == 0 ? 0 : 1));
|
|
|
+ }
|
|
|
+ if(vo.getAuthenticityList().contains("6")){
|
|
|
+ detailService.save(new ArchiveExaminingReportDetail(vo.getProjectId(), id, ArchiveConstant.ARCHIVE_EXAMINING_AUTHENTICITY,
|
|
|
+ ArchiveConstant.ARCHIVE_EXAMINING_STANDARD + "对元数据项数据重复性检测", metadataRepeat, metadataRepeat == 0 ? "无" : "详见附件", metadataRepeat == 0 ? 0 : 1));
|
|
|
+ }
|
|
|
+ if(vo.getAuthenticityList().contains("8")){
|
|
|
+ detailService.save(new ArchiveExaminingReportDetail(vo.getProjectId(), id, ArchiveConstant.ARCHIVE_EXAMINING_AUTHENTICITY,
|
|
|
+ ArchiveConstant.ARCHIVE_EXAMINING_STANDARD + "对信息包一致性检测", 0, "无", 0));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ //完整信
|
|
|
+ if (StringUtils.isNotBlank(vo.getIntegrality()) && "1".equals(vo.getIntegrality())) {
|
|
|
+ if(vo.getIntegralityList().contains("3")){
|
|
|
+ detailService.save(new ArchiveExaminingReportDetail(vo.getProjectId(), id, ArchiveConstant.ARCHIVE_EXAMINING_INTEGRALITY,
|
|
|
+ ArchiveConstant.ARCHIVE_EXAMINING_STANDARD + "对元数据项完整性检测", metadataComplete, metadataComplete == 0 ? "无" : "详见附件", metadataComplete == 0 ? 0 : 1));
|
|
|
+ }
|
|
|
+ if(vo.getIntegralityList().contains("4")){
|
|
|
+ detailService.save(new ArchiveExaminingReportDetail(vo.getProjectId(), id, ArchiveConstant.ARCHIVE_EXAMINING_INTEGRALITY,
|
|
|
+ ArchiveConstant.ARCHIVE_EXAMINING_STANDARD + "对元数据必填项检测", metadataRequiredField, metadataRequiredField == 0 ? "无" : "详见附件", metadataRequiredField == 0 ? 0 : 1));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ //安全性
|
|
|
+ if (StringUtils.isNotBlank(vo.getSecurity()) && "1".equals(vo.getSecurity())) {
|
|
|
+ if(vo.getSecurityList().contains("1")){
|
|
|
+ detailService.save(new ArchiveExaminingReportDetail(vo.getProjectId(), id, ArchiveConstant.ARCHIVE_EXAMINING_SECURITY,
|
|
|
+ ArchiveConstant.ARCHIVE_EXAMINING_STANDARD + "对病毒感染检测", virusDetection, virusDetection == 0 ? "无" : "详见附件", virusDetection == 0 ? 0 : 1));
|
|
|
+ }
|
|
|
+ if(vo.getSecurityList().contains("3")){
|
|
|
+ detailService.save(new ArchiveExaminingReportDetail(vo.getProjectId(), id, ArchiveConstant.ARCHIVE_EXAMINING_SECURITY,
|
|
|
+ ArchiveConstant.ARCHIVE_EXAMINING_STANDARD + "对系统环境中是否安装杀毒软件检测", virusInstall, virusInstall == 0 ? "无" : "详见附件", virusInstall == 0 ? 0 : 1));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
Thread.sleep(3000L);
|
|
|
//生成报告,生成PDF
|
|
|
report.setStatus(3);
|
|
|
@@ -449,8 +496,7 @@ public class ArchiveExaminingReportImpl extends BaseServiceImpl<ArchiveExamining
|
|
|
List<String> PdfUrls = new ArrayList<>();
|
|
|
PdfUrls.add(url);
|
|
|
PdfUrls.add(detailPdf);
|
|
|
-// String localUrl = "/www/wwwroot/Users/hongchuangyanfa/Desktop/archiveExaminingPdf/123.pdf";
|
|
|
- String localUrl = "D:\\tools\\html\\123.pdf";
|
|
|
+ String localUrl = FileUtils.getSysLocalFileUrl() + "/archiveExaminingPdf/123.pdf";
|
|
|
//合并pdf
|
|
|
FileUtils.mergePdfPublicMethods(PdfUrls, localUrl);
|
|
|
BladeFile bladeFile = iossClient.uploadFile("123.pdf", localUrl);
|
|
|
@@ -488,11 +534,11 @@ public class ArchiveExaminingReportImpl extends BaseServiceImpl<ArchiveExamining
|
|
|
* 生成检测报告PDF
|
|
|
*/
|
|
|
private String generateReportPdf(Long id) throws DocumentException, IOException {
|
|
|
+
|
|
|
int high = 20;
|
|
|
int widthPercentage = 100;
|
|
|
String uuid = StringUtil.randomUUID();
|
|
|
- String localUrl = "/www/wwwroot/Users/hongchuangyanfa/Desktop/archiveExaminingPdf/";
|
|
|
-// String localUrl = "D:\\develop\\test\\";
|
|
|
+ String localUrl = FileUtils.getSysLocalFileUrl() + "/archiveExaminingPdf/";
|
|
|
//新建一个pdf文档对象,前一个参数是纸张大小,后四个为边距
|
|
|
Document document = new Document(PageSize.A4, 5, 5, 30, 30);
|
|
|
//建立一个书写器
|