1
0
mirror of https://github.com/fumiama/go-docx.git synced 2026-06-07 16:50:24 +08:00

feat: A3PageSize (#22)

* feat: A3PageSize

* feat: A3PageSize2

* feat: A3PageSize3

* feat: A3PageSize3

* feat: A3PageSize4

* Update structsect.go

---------

Co-authored-by: 源文雨 <41315874+fumiama@users.noreply.github.com>
This commit is contained in:
mabiao0525
2024-03-19 15:49:12 +08:00
committed by GitHub
parent f875425b6e
commit d74423910a
6 changed files with 140 additions and 15 deletions

View File

@@ -46,7 +46,7 @@ func main() {
if !*analyzeOnly {
fmt.Printf("Preparing new document to write at %s\n", *fileLocation)
w = docx.New().WithDefaultTheme()
w = docx.New().WithDefaultTheme().WithA4Page()
// add new paragraph
para1 := w.AddParagraph().Justification("distribute")
r, err := para1.AddAnchorDrawingFrom("testdata/fumiama.JPG")
@@ -254,7 +254,7 @@ func main() {
if err != nil {
panic(err)
}
newFile := docx.New().WithDefaultTheme()
newFile := docx.New().WithDefaultTheme().WithA4Page()
for i := 0; i < int(*dupnum); i++ {
newFile.AppendFile(doc)
}