PDFsharp & MigraDoc Foundation

AcroForm Image Field - how to insert image stream
Page 1 of 1

Author:  enendza [ Tue Feb 05, 2019 10:55 am ]
Post subject:  AcroForm Image Field - how to insert image stream

Hi -

I am trying to stream in an image to a PDF document using the AcroForm Image Field, this allows us to personalize the PDF document to the requester.

I get the image object in the AcroForm.Fields collection but I can't figure out how to set the "value" or "steam" on the image object to display in the image field. Text boxes are working fine.

Here is an example:

WORKS for Text Fields:
myTemplate.AcroForm.Fields["PromoCodeBody"].Value = new PdfSharp.Pdf.PdfString("testMe".ToUpper());
myTemplate.AcroForm.Fields["PromoCodeBody"].ReadOnly = true;

IMAGE Fields ?????
myTemplate.AcroForm.Fields["Image"].Value = ?????

Any help is appreciated


Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group