We managed to replicate the problem of the missing shadow of the shapes in our environment. It has been logged under the ticket ID DIAGRAMNET-51422 in our bug tracking system. We have linked your post to this ticket and will keep you informed regarding any available updates.
The linked ticket ID DIAGRAMNET-51422 has been resolved and will be included in the next version 18.1 of Aspose.Diagram for .NET API. We will notify you once the next version is published.
I think with the shadows there was another issue introduced. when i replace now a token in my visio with an image, then that shape also has the shadow appliedDateien.zip (1.6 MB)
(the %%Logo%% at the upper left)
Source we are using for replacing:
var document = new Diagram(sourceFilePath);
foreach (Page page in document.Pages)
{
List<Shape> shapes = page.Shapes.Cast<Shape>().ToList();
foreach (Shape shape in shapes)
{
foreach (KeyValuePair<string, string> token in tokens)
{
ApplyShapeAction(shape, token.Key, token.Value, ReplaceTextToken);
}
if (isReplaceLogo)
{
ApplyShapeAction(shape, logoToken, logoPath, ReplaceImageToken);
}
}
}
document.Save(destinationFilePath, SaveFileFormat.VSDX);
Kindly send the complete run able code because the code of ReplaceTextToken method is missing as well as token values are not defined. Your response is awaited.
The code of ApplyShapeAction method is not available. Kindly create a small project application and make sure that the problem is reproducible in your environment, and then send us the ZIP of this project. We will investigate your scenario and share our findings with you. Please also highlight the problematic area with a snapshot.