I need to merge two PDFs together. One will be an overlay file containing artwork and some Acro fields, and the other will contain invoice data.
I am using the following code for testing:
private void MergePDF()
{
string dataPDF = @"C:\Data.Pdf";
string overlayPDF = @"C:\Overlay.Pdf";
var overlayPage = new ImportedPageArea(overlayPDF, 1, 0, 0) { Contents = { ClipLeft = 0, ClipTop = 0, ClipRight = 0, ClipBottom = 0 }};
var dataPage = new ImportedPageArea(dataPDF, 1, 0, 0) { Contents = { ClipLeft = 0, ClipTop = 0, ClipRight = 0, ClipBottom = 0 }};
var page = new ceTe.DynamicPDF.Page(PageSize.A4, PageOrientation.Portrait) { Dimensions = { LeftMargin = 0, TopMargin = 0 }};
page.Elements.Add(overlayPage);
page.Elements.Add(dataPage);
var document = new ceTe.DynamicPDF.Document();
document.Pages.Add(page);
document.Draw(@"C:\Result.pdf");
}
The Acro fields not appearing on the merged Pdf.
Can anyone help me with this please?