Hi there,
I'm attempting to make a high quality PDF from a PPT using Aspose.Slides. I would like to retain the EMF data for the slide so that textual searching will continue to work within the resulting PDF and so that the image quality remains at its highest.
Any ideas how I do this as I'm struggling saving an EMF after using the GetThumbnail method of the slide.
Dim image As System.Drawing.Image
image = slide.GetThumbnail(1.0, 1.0)
' Add new section (page) to a PDF and set page's properties
Dim sec1 As Section = pdf1.Sections.Add()
sec1.PageInfo.PageWidth = image.Width
sec1.PageInfo.PageHeight = image.Height
sec1.PageInfo.Margin.Top = 0
sec1.PageInfo.Margin.Bottom = 0
sec1.PageInfo.Margin.Left = 0
sec1.PageInfo.Margin.Right = 0
' Insert image to the created section
Dim image1 As Aspose.Pdf.Image = Aspose.Pdf.Image.FromSystemImage(image) 'New Aspose.Pdf.Image(sec1)
image1.ImageScale = 1.0F
sec1.AddParagraph(image1)
image.Dispose()
Resulting output is a poorly compressed JPG, if I change the Image format of the Aspose.Pdf.Image object to EMF it fails with an encoder error.
Many thanks in advance.
Nick.