add pdf as background to dynamically created document

add pdf as background to dynamically created document

Forum member · Nov 6, 2007
Hello, I'm using dlpx-files and C# to create custom reports like this: DocumentLayout reportPrint = new DocumentLayout(@Server.MapPath("dlpx/print_image.dplx")); ... ParameterDictionary parametersDetails = new ParameterDictionary(); parametersDetails.Add("doCreatorInfo", strCreator); ... Document document = reportPrint.Run(parametersDetails); Now I want to add a background to all the created pages from an existing pdf, is there some kind of method like this: pdfBackground = [open document c:/files/fileX.pdf]; for (int i = 1; i <= document.pages.count; i++) { [add pdfBackground to background of document.pages[i]]; } thanks, Frank

Re: add pdf as background to dynamically created document

Support · Nov 6, 2007
Hello Frank, Yes, you can use an existing PDF document as a template for the report without any problem. You will have to set the TemplatePath property of the Report to the PDF location in the DynamicPDF Designer. You can refer to the Invoice_wTemplate example downloaded with the product download which uses an existing PDF as a template for the report. Thanks, ceTe Software Support Team.