I have the following problem, I create a pdf form with Adobe Acrobat, in which you specified the variables and the relations
private void FillForm()
{
string pdfTemplate = @"D:PlantillaFT.pdf";
FormatoGenerado = @"D:FichaTecnicaGenerada.pdf";
PdfReader pdfReader = new PdfReader(pdfTemplate);
PdfStamper pdfStamper = new PdfStamper(pdfReader, new FileStream(
FormatoGenerado, FileMode.Create));
AcroFields pdfFormFields = pdfStamper.AcroFields;
// Asigna los campos
pdfStamper.AcroFields.ReplacePushbuttonField
pdfFormFields.SetField("FOTO", Foto.Image; //!!!!Aqui es mi duda!!!!
pdfFormFields.SetField("FICHA", txtFicha.Text);
pdfFormFields.SetField("NOMBRES", txtNombres.Text);
pdfFormFields.SetField("APELLIDOS", txtApellidos.Text);
pdfFormFields.SetField("RFC", txtRFC.Text);
pdfFormFields.SetField("CURP", txtCurp.Text);
pdfFormFields.SetField("TELEFONO", txtTelefono.Text);
pdfFormFields.SetField("EMAIL", txtEmail.Text);
pdfFormFields.SetField("NACIMIENTO", FechaNacimiento.Text);
pdfFormFields.SetField("DIRECCION", txtDireccion.Text);
pdfFormFields.SetField("AVISARA", txtAvisarA.Text);
pdfFormFields.SetField("TELAVISO", txtNumContacto.Text);
pdfFormFields.SetField("TIPOSANGRE", cmbTipodeSangre.Text);
pdfFormFields.SetField("SITCONTRACTUAL", cmbSitCotractual.Text);
pdfFormFields.SetField("VACACIONES", Vacaciones.Text);
pdfFormFields.SetField("NIVELACTUAL", txtNivelAct.Text);
pdfFormFields.SetField("CATACTUAL", txtCategoriaActual.Text);
string sTmp = "Datos asignados";
MessageBox.Show(sTmp, "Terminado");
// Cambia la propiedad para que no se pueda editar el PDF
pdfStamper.FormFlattening = false;
// Cierra el PDF
pdfStamper.Close();
}
Now my problem is for the image as the instancio or the step to the pdf in a similar way?