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

Free Support Forum - aspose.com

Problem- adding a image in pdf

Aspose.Pdf.Section sec2 = pdf.Sections.Add();

Aspose.Pdf.Image image = new Aspose.Pdf.Image();

Aspose.Pdf.ImageInfo ii = new ImageInfo();

ii.ImageStream = streamFileData;

image.ImageInfo = ii;


This is the code that i am using to add an image to pdf.{Type Aspose.pdf.Pdf}

There is no exception while running this code but I don't see the image in PDF so generated.

Here streamFileData is stream conversion of image kept in Sharepoint library

Hello Ujjwal,

Thanks for considering Aspose.

I have tested the scenario using the code snippet that you have provided. I am unable to re-produce this issue. Can you please provide us llittle more description about the issue. Also if you could provide us the complete code, it will help us more while understanding it.

Thanks Codewarrior for replying.

Please tell image file formats supported in this.
Also, Is there any limitation on image file size.?

Hello Ujjwal,

Kindly visit ImageFileType to check the list of supported image types by Aspose.Pdf

Where as concerning to image size limit, please spare me some time, let me re-confirm from my development team and i will udpate you shortly.


I am not sure but I think there is no limitation on image file size. What is the size of your image?