Multi-Format Viewer Does Not Display Full Image

Hi. I have a multi-format viewer that works well fore PDF and word documents, but does not display full images. How do i fix this?

Image_5506_1750882090508




4 Replies

VS Venkada Subramanian Durai Syncfusion Team June 26, 2025 02:36 PM UTC

Hi À la mode Clothing Outlet,

Thanks for the update. Could you please provide the document or image you tested to replicate the issue? Also, check whether the issue replicates in the attached sample. This will help us provide an accurate solution for your problem.

Regards,

Venkada Subramanian Durai


Attachment: Net8Server_139cf372.zip


ÀL À la mode Clothing Outlet replied to Venkada Subramanian Durai June 26, 2025 03:23 PM UTC

Hi, thank you for your response. This is the image I used (this is a screenshot, original image is bigger than 100kb). And I have tested with the sample you sent me, the issue does not replicate there. It displays the picture perfectly. What could I be doing wrong?


Image_4673_1750951388499



ÀL À la mode Clothing Outlet June 26, 2025 04:00 PM UTC

I copied the following code from the sample that you sent me to my code and it now works as it should. Thank you once again.

Image_8125_1750953548301

previously I had:

case "jpeg":

case "jpg":

case "png":

case "bmp":

    //Add a page to the document

    PdfPage page = pdfDocument.Pages.Add();

    //Create PDF graphics for the page

    PdfGraphics graphics = page.Graphics;

    PdfBitmap image = new PdfBitmap(stream);

    //Draw the image

    graphics.DrawImage(image, 0, 0);

    break;



VS Venkada Subramanian Durai Syncfusion Team June 27, 2025 05:25 AM UTC

Hi À la mode Clothing Outlet,

Thanks for the update. Please ping us if you need any assistance or have any additional requirements.


Regards,
Venkada Subramanian Durai


Loader.
Up arrow icon