unioffice
unioffice copied to clipboard
Document append problem
Description
When I use doc0.Append(doc1)
, the output file open fail
Expected Behavior
Actual Behavior
Please include a reproducible code snippet or document attachment that demonstrates the issue.
Hi @shenghui0779,
Can you share more detail regarding the code and the files?
Is there any operation like adding more paragraphs or anything else before doc0.Append(doc1)
?
func main() {
doc0, err := document.Open("0.docx")
if err != nil {
log.Fatal(err)
}
defer doc0.Close()
doc1, err := document.Open("1.docx")
if err != nil {
log.Fatal(err)
}
defer doc1.Close()
if err = doc0.Append(doc1); err != nil {
log.Fatal(err)
}
doc0.SaveToFile("output.docx")
}
Thank you, we will check this issue.
Hi @shenghui0779,
We released new UniOffice version https://github.com/unidoc/unioffice/releases/tag/v1.28.0 to solve this issue,
I closing this issue for now, let me know if you still having this after updating the UniOffice version.
Best regards, Alip