修改答辩题目页面大小
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user