First of all your code is seems wrong. You have empty PdfContent and you are you are trying to open pdf with empty content I guess. Furthermore, you dont need MemoryStream because your intention will be to write your file to disk (filestream would be your best option for this)
this example can help you on editing your pdf.
private void fillPDFForm()
{
string formFile = Server.MapPath(P_InputStream);
string newFile = Server.MapPath(P_OutputStream);
PdfReader reader = new PdfReader(formFile);
using (PdfStamper stamper = new PdfStamper(reader, new FileStream(newFile, FileMode.Create)))
{
AcroFields fields = stamper.AcroFields;
// set form fields
fields.SetField("name", "John Doe");
fields.SetField("address", "xxxxx, yyyy");
fields.SetField("postal_code", "12345");
fields.SetField("email", "johndoe@xxx.com");
// flatten form fields and close document
stamper.FormFlattening = true;
stamper.Close();
}
}
further reference: https://simpledotnetsolutions.wordpress.com/2012/04/08/itextsharp-few-c-examples/