Add SVG to Watermark Annotation

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)

@NourKhashan

Can you please share the sample source and generated output documents for our reference so that we can test the scenario in our environment and address it accordingly.

@asad.ali
I have to build image with rotated text with same size of pdf
when u open file in adobe, pdf is open with fit width and image is cleary pixled.
on the other hand is there way to build high resolution image.
output.pdf (329.3 KB)
Source.pdf (141.1 KB)

@NourKhashan

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): PDFNET-58628

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.