How to add SVG to Watermark annotation as When I add Large png it pixled Or when I zoom in pdf.
var page = pdfDocument.Pages[2];
var rec = new Aspose.Pdf.Rectangle(0, 0, 595, 842);
var imageStream = new MemoryStream();
im.Save(imageStream, System.Drawing.Imaging.ImageFormat.Png);
WatermarkAnnotation wa = new WatermarkAnnotation(page, rec);
wa.Rect.Rotate(90);
XForm form = wa.Appearance["N"];
form.BBox = rec;
form.Resources.Images.Add(imageStream);
Matrix matrix = new Matrix(new double[] { rec.URX - rec.LLX,
0, 0, rec.URY- rec.LLY, rec.LLX, rec.LLY });
form.Contents.Add(new Aspose.Pdf.Operators.ConcatenateMatrix(matrix));
form.Contents.Add(new Aspose.Pdf.Operators.GSave());
form.Contents.Add(new Aspose.Pdf.Operators.Do("Im1"));
form.Contents.Add(new Aspose.Pdf.Operators.GRestore());
page.Annotations.Add(wa, true);
Image.png (5.2 KB)