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:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user