Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Way to set page margins #27

Open
estronnom opened this issue Apr 16, 2024 · 1 comment
Open

Way to set page margins #27

estronnom opened this issue Apr 16, 2024 · 1 comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request help wanted Extra attention is needed

Comments

@estronnom
Copy link

Is there any possible way to set page margins (w:pgMar)?

@fumiama fumiama added documentation Improvements or additions to documentation enhancement New feature or request help wanted Extra attention is needed labels Apr 16, 2024
@fumiama
Copy link
Owner

fumiama commented Apr 16, 2024

It's unable now, but can be added by a struct definition like

go-docx/structsect.go

Lines 27 to 30 in 23dde4f

type SectPr struct {
XMLName xml.Name `xml:"w:sectPr,omitempty"` // properties of the document, including paper size
PgSz *PgSz `xml:"w:pgSz,omitempty"`
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants