摘要 |
The invention discloses a document merging method configured to merge a plurality of initial documents formed on the basis of a same template. The template comprises a plurality of fragments, and each of the fragments has a set merging rule. The method merges corresponding fragments in each initial document together according to the merging rules of the fragments to form a merged document. The fragments comprise one or more of rows, columns and cells in a table, and paragraphs, bookmarks and titles in a document. The merging rule comprises copy merging and eliminating repeated merging. The fragments in each initial document with the merging rule of copy merging are copied to the merged document in turn, and the fragments in each initial document with the merging rule of eliminating repeated merging are copied to the merged document in turn, and only one copy will be saved if repetition occurs. |