Setting maxWidth for Image in .xslt (Aspose PDF)

Hello Aspose-Team,

is it possible set maxWidth for image in .xlst? i’m creating pdf-files via binding xslt and xml.
As i see there are not much options for changing the size of images. or i’m missing something, am i?

  • setting FixWidth. Problem: even small images are scaled, what is not appropriate
  • leave images unchanged. Problem: big images are running through page.

I’m actually displaying images inside cell of the table. I would like to limit width of the image to the width of the cell. Height is not important.

For desplaying the images i use file:



or base64:


<xsl:value-of select=“ImageBase64String”/>



Please, can you help me or give me a hint, how to solve my problem.

Thank you very much for your help!

Alex


Hi Alex,


Thanks for your inquiry. I am afraid currently only FixWidth property is available in Aspose.Pdf XML schema to control the image width. However, I have logged an investigation ticket as PDFNEWNET-37477 for further investigation. We will keep you updated about the issue progress via this forum thread.

We are sorry for the inconvenience caused.

Best Regards,

Hi Tilal,

thank you very much for your quick response. At least I know that i was doing everything correct.

Best Regards,
Alex

Hi Alex,


Thanks for your feedback. We will keep you updated about the issue resolution progress via this forum thread.

Best Regards,