修改答辩题目页面大小

This commit is contained in:
2025-06-06 12:07:55 +08:00
parent 2a7873549d
commit dedfc9a959
3 changed files with 7 additions and 3 deletions

View File

@@ -2,7 +2,7 @@ import pathlib
from copy import deepcopy
from docx import Document
from docx.shared import Cm
from docx.shared import Cm, Mm
from module.schema import Course, Student
@@ -14,6 +14,8 @@ class DocPaper:
self._filename = filename
section = self._doc.sections[0]
section.page_width = Mm(210)
section.page_height = Mm(297)
section.top_margin = Cm(2)
section.bottom_margin = Cm(2)
section.left_margin = Cm(2)