Document-package merging and integration