Hi,
I'm using following code to convert an image to a pdf:
Pdf pdf = new Pdf();
pdf.PageSetup.Margin.Bottom = 0;
pdf.PageSetup.Margin.Top = 0;
pdf.PageSetup.Margin.Left = 0;
pdf.PageSetup.Margin.Right = 0;
pdf.PageSetup.PageHeight = Aspose.Pdf.PageSize.A4Height;
pdf.PageSetup.PageWidth = Aspose.Pdf.PageSize.A4Width;
Aspose.Pdf.Section sec = pdf.Sections.Add();
Aspose.Pdf.Image image = new Aspose.Pdf.Image(sec);
sec.Paragraphs.Add(image);
image.ImageInfo.File = ImageFileName;
image.ImageInfo.ImageFileType = GetImageFileType();
pdf.Save(location);
But now i want to convert a smaller image to pdf, Is there a way to center the image?
What is the measuring unit of Aspose.Pdf.PageSize.A4Height? Points, Pixels, Inches, Centimeters,…
Kind Regards, Ibbe