Merge documents


primedocs is able to connect different documents of the same type using the global command Merge. Each individual document is passed as a primedocs Connect Entry.

On the client side, both existing (specifying the Document Location and new documents (specifying the Tags) can be connected. On the server side, only merging of newly created documents is possible.


Existing documents

Existing documents can be specified via the DocumentLocation argument and merged via the Merge command at the OneOffixxBatch level.

<OneOffixxConnectBatch xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schema.oneoffixx.com/OneOffixxConnectBatch/1"> <Commands> <Command Name="Merge"> <Parameters> <Add key="PageNumberStart">123</Add> </Parameters> </Command> <Command Name="DefaultProcess"> <Parameters> <Add key="Start">true</Add> </Parameters> </Command> </Commands> <Entries> <OneOffixxConnect> <Arguments> <DocumentLocation>c:\Temp\Doc1.docx</DocumentLocation> </Arguments> </OneOffixxConnect> <OneOffixxConnect> <Arguments> <DocumentLocation>c:\Temp\Doc2.docx</DocumentLocation> </Arguments> </OneOffixxConnect> ... </Entries> </OneOffixxConnectBatch>

New documents

It is also possible to generate several documents and merge them into one document afterwards.

<OneOffixxConnectBatch xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schema.oneoffixx.com/OneOffixxConnectBatch/1"> <Commands> <Command Name="Merge"> <Parameters> <Add key="PageNumberStart">123</Add> </Parameters> </Command> <Command Name="DefaultProcess"> <Parameters> <Add key="Start">true</Add> </Parameters> </Command> </Commands> <Entries> <OneOffixxConnect> <Arguments> <TemplateId>19d9d75d-0177-4427-a739-115a2df0842e</TemplateId> </Arguments> </OneOffixxConnect> <OneOffixxConnect> <Arguments> <TemplateId>19d9d75d-0177-4427-a739-115a2df0841e</TemplateId> </Arguments> </OneOffixxConnect> ... </Entries> </OneOffixxConnectBatch>

New and existing ones

Both options can be used together as well. For example, new sections can be added to existing documents.

<OneOffixxConnectBatch xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schema.oneoffixx.com/OneOffixxConnectBatch/1"> <Commands> <Command Name="Merge"> <Parameters> <Add key="PageNumberStart">123</Add> </Parameters> </Command> <Command Name="DefaultProcess"> <Parameters> <Add key="Start">true</Add> </Parameters> </Command> </Commands> <Entries> <OneOffixxConnect> <Arguments> <DocumentLocation>c:\Temp\Doc1.docx</DocumentLocation> </Arguments> </OneOffixxConnect> <OneOffixxConnect> <Arguments> <TemplateId>19d9d75d-0177-4427-a739-115a2df0841e</TemplateId> </Arguments> </OneOffixxConnect> ... </Entries> </OneOffixxConnectBatch>

 

PrimeSoft AG, Bahnhofstrasse 4, 8360 Eschlikon, Switzerland