Posted by a ceTe Software moderator
Hi Vlad,
Can you keep an original version of the PDF and then provide a different one that shows not approved. Then when they digitally sign it, sign the original one?
Another approach may be to add a form field, then remove it later. Here is a code sample:
Document document = new Document();
Page page = new Page();
document.Pages.Add(page);
ceTe.DynamicPDF.PageElements.Forms.TextField txtField = new ceTe.DynamicPDF.PageElements.Forms.TextField("txt1", 100, 100, 100, 30);
txtField.ReadOnly = true;
txtField.BackgroundColor = RgbColor.AliceBlue;
txtField.DefaultValue = "Remove this Text";
page.Elements.Add(txtField);
// Save the PDF
document.Draw(@"C:\Temp\MyTextDocument.pdf");
Below is a code sample to remove a form field using its name.
PdfDocument pdf = new PdfDocument(@"C:\Temp\MyTextDocument.pdf");
MergeDocument document = new MergeDocument(pdf);
document.Form.Fields["txt1"].Output = FormFieldOutput.Remove;
document.Draw(@"C:\Temp\MyDocument.pdf");
Thanks,
ceTe Software Support Team