I’m working on a POC to create a pdf, the issue I have is when I try to add a svg image as background with this code:
BackgroundArtifact background = new BackgroundArtifact();
background.BackgroundImage = File.OpenRead(image);
background.ArtifactHorizontalAlignment = HorizontalAlignment.Center;
background.ArtifactVerticalAlignment = VerticalAlignment.Center;
background.Position = new Aspose.Pdf.Point(0, 0);
page.Artifacts.Add(background);
the background for the first page works fine but for all the other pages send the error Invalid image stream (Image export failed.), 2 weeks ago I test this code and works fine, actually if I use other type of image works, the problem is only with svg files.
could you help me to understand what is the issue?