Page 1 of 1

Merging docx file with plutexEnterprise 3.3.0.11

PostPosted: Tue Oct 17, 2017 7:40 pm
by bs_dellacqua
Hello,
we have purchased the license to use plutexEnterprise 3.3.0.11, and now we are using it to merge multiple files;
I'm merging one file with custom properties (file 1) and one file without custom properties (file 2);
if I merge the files in the order file 1/file 2 then the merged file has the custom properties, if the merge is done in the order file 2/file 1 then the merged file hasn't the custom properties;
is there a way to avoid this behavior and to produce a merged file with custom properties no matter about the order of the files to be merged ?

I've solved the problem adding to the final merged file the DocPropsCustomPart of the first file to be merged for which it is valid.
Thanks

Re: Merging docx file with plutexEnterprise 3.3.0.11

PostPosted: Thu Oct 19, 2017 7:17 pm
by jason
The first of the files to be merged is "privileged" in the sense that certain parts, if present, are copied from it.

These include:
  • DocPropsCorePart
  • DocPropsCustomPart
  • DocPropsExtendedPart
  • DocumentSettingsPart

It would be possible to add a feature to take the DocPropsCustomPart from a later document, or indeed, to merge properties from multiple parts, but such a feature is absent at present.

bs_dellacqua wrote:I've solved the problem adding to the final merged file the DocPropsCustomPart of the first file to be merged for which it is valid.


That's a sensible workaround. Thinking out loud, the value-add the merging code could do may be to merge properties from parts found across documents, but in the event of same name different value, what do we do?

ps Enterprise support is best obtained by email. Either support@plutext.com, or me directly (jharrop).