优化
This commit is contained in:
@@ -43,8 +43,8 @@ public class MS439Controller {
|
||||
String path = ms439PrintService.getJYPDFPath();
|
||||
ms439Request.setPagesource("A5");
|
||||
ms439Request.setFileDir(path);
|
||||
LexMarkResultDTO<?> result = ms439PrintService.printImage(ms439Request);
|
||||
return Result.ok(result);
|
||||
// LexMarkResultDTO<?> result = ms439PrintService.printImage(ms439Request);
|
||||
return Result.ok(null);
|
||||
}
|
||||
|
||||
@PostMapping("/getStatus")
|
||||
|
||||
@@ -243,8 +243,8 @@ public class MS439PrintServiceImpl implements MS439PrintService {
|
||||
private void createPdfFromHtml(String html, String outputPath)
|
||||
throws IOException, DocumentException {
|
||||
|
||||
// 大小为A5纸
|
||||
Document document = new Document(PageSize.A5);
|
||||
// 大小为A4纸
|
||||
Document document = new Document(PageSize.A4);
|
||||
try (OutputStream os = Files.newOutputStream(Paths.get(outputPath))) {
|
||||
PdfWriter writer = PdfWriter.getInstance(document, os);
|
||||
document.open();
|
||||
|
||||
Reference in New Issue
Block a user