Alignment of images


#1

I am using xml to do my pdf. I am basically doing an invoice and using tables. I am not able to center an image, how am I supposed to do this?

Thanks.


#2

Hi,

Thank you for considering Aspose.

It seems you are using Aspose.Pdf but not Aspose.Pdf.Kit. In Aspose.Pdf, you can use Image.ImageInfo.Alignment to center the image. If it won’t work, please provide your code and let us check it.


#3

I’m Sorry, I am using Aspose.Pdf. I tried using that, but no help. It stayed the same which is right aligned.

Is there a way I can do it in the XML file?


#4

Here is an example XML.

<?xml version="1.0" encoding="utf-8" ?>