Merge document