merging text and pdf documents