I am trying to add an SVG image to a PDF using Aspose PDF. The image is added but it isnt preserved as a vector in the PDF. It seems to be converted to more of a bitmap type image. Is there any way to achieve this?
new Aspose.Pdf.License().SetLicense(@"Aspose.Total.lic");
var pdfDoc = new Document();
var pdfPage = pdfDoc.Pages.Add();
using (var fileStream = File.OpenRead(@"C:\Users\Paul\Desktop\GoogleLogo.svg"))
{
var image = new Image
{
ImageStream = fileStream,
FileType = ImageFileType.Svg,
FixWidth = 200,
FixHeight = 200
};
pdfPage.Paragraphs.Add(image);
pdfDoc.Save(@"C:\Users\Paul\Desktop\VectorX.pdf");
}