mirror of
https://github.com/fumiama/go-docx.git
synced 2026-06-07 16:50:24 +08:00
feat: chage template name (due2 #17)
This commit is contained in:
@@ -46,7 +46,7 @@ func main() {
|
||||
if !*analyzeOnly {
|
||||
fmt.Printf("Preparing new document to write at %s\n", *fileLocation)
|
||||
|
||||
w = docx.NewA4()
|
||||
w = docx.New().WithDefaultTheme()
|
||||
// add new paragraph
|
||||
para1 := w.AddParagraph().Justification("distribute")
|
||||
r, err := para1.AddAnchorDrawingFrom("testdata/fumiama.JPG")
|
||||
@@ -253,7 +253,7 @@ func main() {
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
newFile := docx.NewA4()
|
||||
newFile := docx.New().WithDefaultTheme()
|
||||
for i := 0; i < int(*dupnum); i++ {
|
||||
newFile.AppendFile(doc)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user