Posted by a ceTe Software moderator
We have looked into this issue further and the following code can be used to fix the issue where the field values are not displayed by iOS Preview. The code below replaces the form fields with a label containing the field values.
PdfDocument pdfDocument = new PdfDocument("input.pdf");
// Merged Document
MergeDocument document = new MergeDocument();
// Append the input document and return a Pages array
Page[] pages = document.Append(pdfDocument, MergeOptions.None);
// Retrieve the form fields
PdfFormField ERName = pdfDocument.Form.Fields["ERName"];
PdfFormField InsuredFirstName = pdfDocument.Form.Fields["InsuredFirstName"];
PdfFormField InsuredLastName = pdfDocument.Form.Fields["InsuredLastName"];
// Add the labels
ERName.CreateLabel(pages[ERName.GetOriginalPageNumber() - 1], "ER Name", ceTe.DynamicPDF.Font.Helvetica, 12);
InsuredFirstName.CreateLabel(pages[InsuredFirstName.GetOriginalPageNumber() - 1], "First Name", ceTe.DynamicPDF.Font.Helvetica, 12);
InsuredLastName.CreateLabel(pages[InsuredLastName.GetOriginalPageNumber() - 1], "Last Name", ceTe.DynamicPDF.Font.Helvetica, 12);
document.Security = new HighSecurity();
document.Security.AllowEdit = false;
document.Draw("output.pdf");
Thanks,
ceTe Software Support Team.