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

Ability to merge docx files #287

Closed
yungsem opened this issue May 29, 2019 · 3 comments
Closed

Ability to merge docx files #287

yungsem opened this issue May 29, 2019 · 3 comments

Comments

@yungsem
Copy link

yungsem commented May 29, 2019

Will it be possible for you to add docx merging api ?
I know this is a very difficult and heavy job, but I really look forward to seeing you add this funciton.
Hope for your reply. Thank you.

@gunnsth gunnsth changed the title merge docx Ability to merge docx files Nov 18, 2019
@gunnsth gunnsth added feature New feature eval Evaluate labels Nov 18, 2019
@gunnsth
Copy link
Contributor

gunnsth commented Nov 18, 2019

Needs some investigation into what docx merging requires. Off the top of my head:

  • An easy, quick way could be via subdocument embedding (Add subDocument TargetMode="external" relationship support #277) with a master file referencing the others.
  • More proper way would require loading each file, and copying to the master file, keeping all ids unique. Page overlap could happen between documents as docx does not have page concept. Perhaps could force each document to end with a forced page-break.

It would make sense to create examples for merging and if it makes sense, a higher level API could be created.

@dataflowjs
Copy link

dataflowjs commented Jul 2, 2020

Looking for this feature too! Have a presentation file docx and all other files docx and i want insert presentation to begining of each file.

@gunnsth
Copy link
Contributor

gunnsth commented Nov 20, 2020

Support for this has been added, see example
https://github.com/unidoc/unioffice-examples/blob/master/document/merge-documents/main.go

@gunnsth gunnsth closed this as completed Nov 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants