|
|
@@ -449,8 +449,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 +487,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);
|
|
|
//建立一个书写器
|