I have been banging my head on adding a PNG to a PDF. I can do it with a JPG but no joy with PNG.
public void AddImage(RadFixedDocument document)
{
FixedContentEditor editor = new FixedContentEditor(document.Pages[0]);
using (FileStream fs = new FileStream("ADC.jpg", FileMode.Open, FileAccess.Read))
{
editor.Position.Translate(50, 50);
editor.DrawImage(new ImageSource(fs, ImageQuality.High), 50, 50);
}
}
Change the jpg to a png and I get this error: System.NotSupportedException: 'Can not export other than Jpeg and Jpeg2000 and ImageQuality different than High'
I can change the ImageQuality to low and same error. Is there an example of DrawImage with a png?