Background PDF has covered the actual content.

Background PDF has covered the actual content.

Forum member · Jun 18, 2013
We have come across a new thorny issue due to the upgrade unfortunately. We have built the content on the top of background PDF in the report which means the actual content will overlay the background PDF. After we upgraded we have found the background PDF has covered the actual content somehow as shown below. In this case you can see obviously the watermark on the background PDF has covered the actual content seriously. The report works fine before we upgraded dynamic PDF from 4.0 to 7.0. Here is the code snippet which worked fine in 4.0 version before: DocumentLayout doc = new DocumentLayout(this.ReportFilePath); ... MergeDocument merge = new MergeDocument(); Document report; report = doc.Run(parameters); ImportedPageArea importedPage; importedPage = new ImportedPageArea(TemplateFilePath, 1, 0.0F, 0.0F, 1.0F); ceTe.DynamicPDF.Page rptPage = report.Pages[0]; rptPage.Elements.Insert(0, importedPage); byte[] buffer = report.Draw(); merge.Append(new PdfDocument(buffer)); we have tried to try all possible means in the code and browsed your website for the possible reason but haven't found the reason for this issue at the moment. No changes happened to the code,dplx and background PDF so we think the upgrade has caused the problem somehow. Looking forward to hearing from you with the help

Re: Background PDF has covered the actual content.

Support · Jun 19, 2013
Hello, Please try adding the imported page area contents to the Template and set this template to the PDF report instead of inserting imported page contents to first page of the report. Below is the sample code for it. DocumentLayout doc = new DocumentLayout(@"Test.dplx"); Document report; report = doc.Run(); ImportedPageArea importedPage; importedPage = new ImportedPageArea(TemplateFilePath, 1, -50.0F, -50.0F, 1.0F); report.Template = new Template(); report.Template.Elements.Add(importedPage); report.Draw(@"C:\Mydocument.pdf"); Thanks, ceTe Software Support Team.