I have the following code to save a TIF to a PDF, but the saved PDF is considerably larger than the original tif, zooming in to the pdf 65% seems about the correct size, also setting the compression value makes no difference on the size of the file.
Aspose.Pdf.Generator.Pdf pdf1 = new Aspose.Pdf.Generator.Pdf();
Aspose.Pdf.Generator.Section sec1 = pdf1.Sections.Add();
Aspose.Pdf.Generator.Image image1 = new Aspose.Pdf.Generator.Image(sec1);image1.ImageInfo.File = input;
image1.ImageInfo.ImageFileType = Aspose.Pdf.Generator.ImageFileType.Tiff;using(var bmp = Bitmap.FromFile(input)){
pdf1.PageSetup.PageWidth = bmp.Width;
pdf1.PageSetup.PageHeight = bmp.Height;pdf1.PageSetup.Margin.Bottom = 0;
pdf1.PageSetup.Margin.Top = 0;
pdf1.PageSetup.Margin.Left = 0;
pdf1.PageSetup.Margin.Right = 0;sec1.PageInfo.PageWidth = bmp.Width;
sec1.PageInfo.PageHeight = bmp.Height;sec1.PageInfo.Margin.Top = 0;
sec1.PageInfo.Margin.Bottom = 0;
sec1.PageInfo.Margin.Left = 0;
sec1.PageInfo.Margin.Right = 0;image1.ImageInfo.FixWidth = bmp.Width;
image1.ImageInfo.FixHeight = bmp.Height;if(bmp.Width > bmp.Height)
sec1.IsLandscape = true;
else
sec1.IsLandscape = false;
}sec1.Paragraphs.Add(image1);
pdf1.Save(output);