You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
after use SetHeader Func, The Paragraph LineSpacing was be changed, the verticalAlignment of Paragraph change to top
Expected Behavior
Actual Behavior
Please include a reproducible code snippet or document attachment that
demonstrates the issue.
funcmain() {
doc:=document.New()
deferdoc.Close()
img, err:=common.ImageFromFile("gophercolor.png")
iferr!=nil {
log.Fatalf("unable to create image: %s", err)
}
hdr:=doc.AddHeader()
iref, err:=hdr.AddImage(img)
iferr!=nil {
log.Fatalf("unable to to add image to document: %s", err)
}
para:=hdr.AddParagraph()
imgInl, _:=para.AddRun().AddDrawingInline(iref)
imgInl.SetSize(1*measurement.Inch, 1*measurement.Inch)
// -----the only different is use or not the follow line code -----// doc.BodySection().SetHeader(hdr, wml.ST_HdrFtrDefault)text:=`Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin lobortis, lectus dictum feugiat tempus, sem neque finibus enim, sed eleifend sem nunc ac diam. Vestibulum tempus sagittis elementum`para=doc.AddParagraph()
para.SetLineSpacing(30, wml.ST_LineSpacingRuleAuto)
run:=para.AddRun()
run.Properties().SetSize(18)
run.AddText(text)
para.Properties().VerticalAlignment()
doc.SaveToFile("header-footer.docx")
}
The text was updated successfully, but these errors were encountered:
Welcome! Thanks for posting your first issue. The way things work here is that while customer issues are prioritized,
other issues go into our backlog where they are assessed and fitted into the roadmap when suitable.
If you need to get this done, consider buying a license which also enables you to use it in your commercial products.
More information can be found on https://unidoc.io/
@yeezyi I've tested both cases (with header and without header) with the latest UniOffice version (v.1.37.0) and behavior is the same, line spacing and alignment are the same for these two cases.
Could you please make sure you are using the latest version of UniOffice?
Description
after use SetHeader Func, The Paragraph LineSpacing was be changed, the verticalAlignment of Paragraph change to top
Expected Behavior
Actual Behavior
Please include a reproducible code snippet or document attachment that
demonstrates the issue.
The text was updated successfully, but these errors were encountered: