FillImageField
Contenu
[
Cacher
]FillImageField(string, string)
Colle une image sur le champ de bouton existant comme son apparence selon son nom de champ complet.
public void FillImageField(string fieldName, string imageFileName)
Paramètre | Taper | La description |
---|---|---|
fieldName | String | Le nom de champ complet du champ du bouton d’image. |
imageFileName | String | Le chemin du fichier image, relatif et absolu, est correct. |
Exemples
Form form = new Form("PdfForm.pdf", "PdfForm_filled.pdf");
form.FillImageField("fieldName", "file.jpg");
form.Save();
Voir également
- class Form
- espace de noms Aspose.Pdf.Facades
- Assemblée Aspose.PDF
FillImageField(string, Stream)
Surcharge la fonction de FillImageField. L’entrée est un flux d’image.
public void FillImageField(string fieldName, Stream imageStream)
Paramètre | Taper | La description |
---|---|---|
fieldName | String | Le nom de champ complet. |
imageStream | Stream | Le flux de l’image. |
Exemples
Form form = new Form("PdfForm.pdf", "PdfForm_filled.pdf");
form.FillImageField("fieldName", new FileStream("file.jpg", FileMode.Open, FileAccess.Read));
Voir également
- class Form
- espace de noms Aspose.Pdf.Facades
- Assemblée Aspose.PDF