mirror of
https://github.com/fumiama/go-docx.git
synced 2026-06-06 08:10:25 +08:00
优化完善 table canvas
This commit is contained in:
14
empty.go
14
empty.go
@@ -60,21 +60,11 @@ func newEmptyA4File() *Docx {
|
||||
Type: `http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable`,
|
||||
Target: "fontTable.xml",
|
||||
},
|
||||
{
|
||||
ID: "rId4",
|
||||
Type: `http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings`,
|
||||
Target: "settings.xml",
|
||||
},
|
||||
{
|
||||
ID: "rId5",
|
||||
Type: `http://schemas.openxmlformats.org/officeDocument/2006/relationships/webSettings`,
|
||||
Target: "webSettings.xml",
|
||||
},
|
||||
},
|
||||
},
|
||||
media: make([]Media, 0, 64),
|
||||
mediaNameIdx: make(map[string]int, 64),
|
||||
rID: 5,
|
||||
rID: 3,
|
||||
slowIDs: make(map[string]uintptr, 64),
|
||||
template: "a4",
|
||||
tmpfslst: []string{
|
||||
@@ -83,9 +73,7 @@ func newEmptyA4File() *Docx {
|
||||
"docProps/core.xml",
|
||||
"word/theme/theme1.xml",
|
||||
"word/fontTable.xml",
|
||||
"word/settings.xml",
|
||||
"word/styles.xml",
|
||||
"word/webSettings.xml",
|
||||
"[Content_Types].xml",
|
||||
},
|
||||
buf: bytes.NewBuffer(make([]byte, 0, 1024*1024)),
|
||||
|
||||
Reference in New Issue
Block a user