[update] 封面最后一行前面的换行去掉,解决有的文件下载后封面会有两页的问题

This commit is contained in:
lideqin
2024-09-06 17:07:30 +08:00
parent bbb8a6ba22
commit bd1e34c90b
+2 -1
View File
@@ -472,7 +472,7 @@ export default {
const oDrawing2 = Api.CreateShape('rect', 6110900, 18000, oFill2, oStroke2) const oDrawing2 = Api.CreateShape('rect', 6110900, 18000, oFill2, oStroke2)
oDrawing2.SetWrappingStyle('inline') oDrawing2.SetWrappingStyle('inline')
oParagraphLine2.AddDrawing(oDrawing2) oParagraphLine2.AddDrawing(oDrawing2)
oParagraphLine2.AddLineBreak() // oParagraphLine2.AddLineBreak()
oParagraphLine2.SetSpacingLine(240, 'auto') oParagraphLine2.SetSpacingLine(240, 'auto')
oDocument.InsertContent([oParagraphLine2]) oDocument.InsertContent([oParagraphLine2])
const oParagraph10 = Api.CreateParagraph() const oParagraph10 = Api.CreateParagraph()
@@ -483,6 +483,7 @@ export default {
oParagraph10.SetJc('center') oParagraph10.SetJc('center')
oParagraph10.SetBold(false) oParagraph10.SetBold(false)
oParagraph10.SetPosition(0) oParagraph10.SetPosition(0)
oParagraph10.SetSpacingBefore(70)
oParagraph10.SetSpacingLine(240, 'auto') oParagraph10.SetSpacingLine(240, 'auto')
oDocument.InsertContent([oParagraph10]) oDocument.InsertContent([oParagraph10])
oParagraph10.Search('发布')[0].SetSpacing(3) oParagraph10.Search('发布')[0].SetSpacing(3)