Hi,
Is there any compression apply to images(BMP) will generating pdf ..
My image is around 8.5mb and my generated pdf is 218kb?
(.GIF also have the same behavior. JPG and PNG are ok).
Thanks
Daniel
PS: Is there any white paper on how images are handle?.
Code sample: (compile with .net 3.5, using aspose.pdf 5.0.0.0, Total License)
Pdf pdf1 = new Pdf();
Section sec1 = pdf1.Sections.Add();
sec1.PageInfo.PageWidth = Aspose.Pdf.PageSize.LetterWidth;
sec1.PageInfo.PageHeight = Aspose.Pdf.PageSize.LetterHeight;
Aspose.Pdf.Image imgPhotoA = new Aspose.Pdf.Image(sec1);
sec1.Paragraphs.Add(imgPhotoA);
imgPhotoA.ImageInfo.File = @"E:\vuarnet.bmp"; // 8.5mb image
imgPhotoA.ImageInfo.ImageFileType = ImageFileType.Bmp;
imgPhotoA.Left = 0;
imgPhotoA.Top = 0;
pdf1.CompressionLevel = 0;
pdf1.Save("E:\\output.pdf"); // 218kb file