Form.FillImageField
Contents
[
Hide
]FillImageField(string, string)
Pastes an image onto the existing button field as its appearance according to its fully qualified field name.
public void FillImageField(string fieldName, string imageFileName)
Parameter | Type | Description |
---|---|---|
fieldName | String | The fully qualified field name of the image button field. |
imageFileName | String | The path of the image file, relative and absolute are both ok. |
Examples
Form form = new Form("PdfForm.pdf", "PdfForm_filled.pdf");
form.FillImageField("fieldName", "file.jpg");
form.Save();
See Also
- class Form
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF
FillImageField(string, Stream)
Overloads function of FillImageField. The input is a image stream.
public void FillImageField(string fieldName, Stream imageStream)
Parameter | Type | Description |
---|---|---|
fieldName | String | The fully qualified field name. |
imageStream | Stream | The image’s stream. |
Examples
Form form = new Form("PdfForm.pdf", "PdfForm_filled.pdf");
form.FillImageField("fieldName", new FileStream("file.jpg", FileMode.Open, FileAccess.Read));
See Also
- class Form
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF