Observe the two attached PDF files - both created by the same code using Aspose.pDF 4.8 and 5.0.1
The code used to auto-center and scale the images, but no more.
How do we revert to the old behavior?
Pretty sure the code below is right out of one of your samples:
Dim pdf1 As Aspose.Pdf.Pdf = New Aspose.Pdf.Pdf()
'Create a section in the Pdf object
Dim sec1 As Aspose.Pdf.Section = pdf1.Sections.Add()
'Create an image object in the section
Dim image1 As Aspose.Pdf.Image = New Aspose.Pdf.Image(sec1)
'Add image object into the Paragraphs collection of the section
sec1.Paragraphs.Add(image1)
'Set the path of image file
image1.ImageInfo.File = fileName
image1.ImageInfo.ImageFileType = ImageType
'Set image title
If Not title Is Nothing AndAlso title.Length > 0 Then image1.ImageInfo.Title = title
'Save the Pdf
fileName = System.IO.Path.ChangeExtension(fileName, ".pdf")
pdf1.Save(fileName)