Merging PDF's

Merging PDF's

Forum member · Jun 7, 2010
I have one PDF with just a background image and I have another PDF with Text fields laid out at different positions. I would like to merge the two together but ensure that the Background stays as the background and the fields are superimposed on top of that background at there current positions. What is the proper way to do this? Thanks!

Re: Merging PDF's

Support · Jun 9, 2010
Yes, you could achieve something like this using our DynamicPDF Merger product. You will have to import the contents from the PDF document which you want to put as background using ImportedPageArea class. Then add this content to a TransparencyGroup and set some transparency to the group. Then add this group to the Template. You will have to merge the other PDF document using the MergeDocument class and then stamp the template to the MergeDocument object. You may need to tweak it but this gives you the general idea: PdfDocument pdf1 = new PdfDocument(@"Path for the PDF document which has image"); PdfDocument pdf2 = new PdfDocument(@"Path for the PDF document which has FormFields"); ImportedPageArea area1 = new ImportedPageArea(pdf1.Pages[0], 0, 0); TransparencyGroup grp=new TransparencyGroup(0.35F); grp.Add(area1); Template template = new Template(); template.Elements.Add(grp); MergeDocument document = new MergeDocument(pdf2); document.StampTemplate = template; document.Draw(@"Path to save the PDF document"); Thanks, ceTe Software Support Team