We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Aspose fillImageField: Image not visible

Using of Aspose.pdf.dll I have a simple PDF with fields, I"m trying to use the following to populate a field:
public void FillImageField( string fieldName,
Stream image )
if( _form.FieldNames.Contains( fieldName ) )
_form.FillImageField( fieldName, image );
catch( Exception )
where the image is a memory stream of the .png image. I’ve also tried .bmp, and .jpg

        if (!printDetail.VisitItems.PhysicianSignature.IsEmpty())
            form.FillImageField("Physician.Signature",new MemoryStream(Convert.FromBase64String(printDetail.VisitItems.PhysicianSignature)));

I can view the image in a control on the screen, so I’m positive it’s valid. All other fields populate on the PDF.



Thanks for contacting support.

Can you please share the input PDF file and complete code snippet which you are using, so that we can test the scenario in our environment. We are sorry for this inconvenience.