Form.FillImageField

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)
ParameterTypeDescription
fieldNameStringThe fully qualified field name of the image button field.
imageFileNameStringThe 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


FillImageField(string, Stream)

Overloads function of FillImageField. The input is a image stream.

public void FillImageField(string fieldName, Stream imageStream)
ParameterTypeDescription
fieldNameStringThe fully qualified field name.
imageStreamStreamThe 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