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

Document append problem #468

Closed
shenghui0779 opened this issue Jun 8, 2022 · 4 comments
Closed

Document append problem #468

shenghui0779 opened this issue Jun 8, 2022 · 4 comments

Comments

@shenghui0779
Copy link

Description

When I use doc0.Append(doc1), the output file open fail

Expected Behavior

Actual Behavior

image

Please include a reproducible code snippet or document attachment that
demonstrates the issue.

@sampila
Copy link
Collaborator

sampila commented Jun 8, 2022

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)?

@shenghui0779
Copy link
Author

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")
}

0.docx
1.docx

@sampila
Copy link
Collaborator

sampila commented Jun 8, 2022

Thank you, we will check this issue.

@sampila
Copy link
Collaborator

sampila commented Oct 6, 2023

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

@sampila sampila closed this as completed Oct 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants