Greetings.
I'm working with a c# project using Aspose.Pdf.
These two properties are not working for Aspose.Pdf.Image object:
Example:
Create an image 1x1 pixels size. Then try to stretch this image to create some sort of an image separator.
Image imageSeparator = new Image();
imageSeparator.File = System.IO.Path.GetFullPath(System.Web.Hosting.HostingEnvironment.MapPath("~/Content/Images/Separator.png"));
imageSeparator.FixHeight = 10;
imageSeparator.FixWidth = PageSize.A4.Width;
doc.Pages[1].Paragraphs.Add(imageSeparator);
That won't work, the image will still have the 1x1 size.
Please note, that same code with Aspose.Pdf.Generator.Image works well:
Image imageSeparator = new Image();
imageSeparator.ImageInfo.File = @"~\Content\Images\Separator.png";
imageSeparator.ImageInfo.FixHeight = 10;
imageSeparator.ImageInfo.FixWidth = PageSize.A4Width;
imageSeparator.ImageInfo.ImageFileType = ImageFileType.Png;