feat: PDF文档调整1
parent
c375390d52
commit
8703b8bdc7
|
|
@ -63,7 +63,8 @@ public class MeetingExportServiceImpl implements MeetingExportService {
|
|||
private static final float WATERMARK_BASE_STEP_X = 430f;
|
||||
private static final float WATERMARK_BASE_STEP_Y = 300f;
|
||||
private static final String PDF_EXPORT_VERSION_PROPERTY = "iMeetingPdfExportVersion";
|
||||
private static final String PDF_EXPORT_VERSION = "3";
|
||||
private static final String PDF_EXPORT_VERSION = "4";
|
||||
private static final DateTimeFormatter PDF_MEETING_TIME_FORMATTER = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm");
|
||||
|
||||
private final MeetingSummaryFileService meetingSummaryFileService;
|
||||
private final SysTenantUserService sysTenantUserService;
|
||||
|
|
@ -210,7 +211,7 @@ public class MeetingExportServiceImpl implements MeetingExportService {
|
|||
String htmlBody = renderer.render(document);
|
||||
|
||||
String title = meeting.getTitle() == null ? "Meeting" : meeting.getTitle();
|
||||
String time = meeting.getMeetingTime() == null ? "" : meeting.getMeetingTime().toString();
|
||||
String time = formatPdfMeetingTime(meeting);
|
||||
String host = meeting.getHostName() == null ? "" : meeting.getHostName();
|
||||
String participants = meeting.getParticipants() == null ? "" : meeting.getParticipants();
|
||||
|
||||
|
|
@ -233,16 +234,16 @@ public class MeetingExportServiceImpl implements MeetingExportService {
|
|||
"</style></head><body>" +
|
||||
"<div style='text-align:center; margin-bottom:30px; border-bottom: 2px solid #1890ff; padding-bottom:20px;'>" +
|
||||
"<h1 style='font-size:28px; margin-bottom:12px; color:#000; border:none;'>" + title + "</h1>" +
|
||||
"<div style='font-size:14px; color:#666;'>" +
|
||||
"<span>Meeting Time: " + time + "</span>" +
|
||||
"<div style='font-size:14px; line-height:1.8; color:#666; word-wrap: break-word;'>" +
|
||||
"<span>会议时间:" + time + "</span>" +
|
||||
"<span style='margin: 0 20px;'>|</span>" +
|
||||
"<span>Host: " + host + "</span>" +
|
||||
"<span>主持人:" + host + "</span>" +
|
||||
"<span style='margin: 0 20px;'>|</span>" +
|
||||
"<span>Participants: " + participants + "</span>" +
|
||||
"<span>参会人:" + participants + "</span>" +
|
||||
"</div></div>" +
|
||||
"<div class='markdown-body'>" + htmlBody + "</div>" +
|
||||
"<div style='margin-top: 40px; text-align: right; font-size: 12px; color: #999; border-top: 1px dashed #eee; padding-top: 10px;'>" +
|
||||
"Generated by iMeeting AI Assistant" +
|
||||
"<div style='margin-top: 40px; text-align: center; font-size: 12px; font-style: italic; color: #999; border-top: 1px dashed #eee; padding-top: 10px;'>" +
|
||||
"—— 内容由智听云AI生成 ——" +
|
||||
"</div>" +
|
||||
"</body></html>";
|
||||
|
||||
|
|
@ -252,6 +253,10 @@ public class MeetingExportServiceImpl implements MeetingExportService {
|
|||
return jsoupDoc.html();
|
||||
}
|
||||
|
||||
private String formatPdfMeetingTime(MeetingVO meeting) {
|
||||
return meeting.getMeetingTime() == null ? "" : meeting.getMeetingTime().format(PDF_MEETING_TIME_FORMATTER);
|
||||
}
|
||||
|
||||
private void normalizeMarkdownLists(Element container, int level) {
|
||||
if (container == null) {
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in New Issue