While signing a document in Adobe Reader, the users can lock the document fields from editing. Expose a similar functionality. The feature is described by the FieldMDP transform method, described on page 736 from the Pdf Reference 1.7
When merging documents` pages using the PdfStreamWriter the Form Fields are not copied:
using (PdfStreamWriter fileWriter = new PdfStreamWriter(File.OpenWrite(document2Name)))
{
// Iterate through the files you would like to merge
for (int i = 0; i < 2; i++)
{
// Open each of the files
using (PdfFileSource fileToMerge = new PdfFileSource(File.OpenRead(document1Name)))
{
// Iterate through the pages of the current document
foreach (PdfPageSource pageToMerge in fileToMerge.Pages)
{
// Append the current page to the fileWriter, which holds the stream of the result file
fileWriter.WritePage(pageToMerge);
}
}
}
}A possible workaround is to use the RadFixedDocument`s Merge() method:
document1.Merge(document2);