Hi,
when I use simple code to update a text layer content:
using (PsdImage image = (PsdImage)PsdImage.Load(file))
{
//PsdImage psdImage = image;
foreach (var layer in image.Layers)
{
if (layer is TextLayer)
{
TextLayer textLayer = (TextLayer)layer;
if (!String.IsNullOrEmpty(textLayer.Text))
{
textLayer.UpdateText("any string");
}
}
}
image.Save(file + "1.psd", new PsdOptions { CompressionMethod = CompressionMethod.RLE });
}
I’m getting following error:
Aspose.Imaging.CoreExceptions.ImageFormats.PsdImageException occurred
HResult=0x80131500
Message=Can not locate global resource occurance of text
Source=Aspose.Imaging
StackTrace:
at .(String , Int32& )
at .UpdateText(String , Point , Single , Color )
at Aspose.Imaging.FileFormats.Psd.Layers.TextLayer.UpdateText(String text)
I have worked with the source file shared by you and have been able to observe the issue. An issue with ID IMAGINGNET-2850 has been created in our issue tracking system to further investigate and resolve the issue. This thread has been linked with the issue so that you may be automatically notified once the issue will be fixed. We will share good news with you soon.
The issues you have found earlier (filed as IMAGINGNET-2850) have been fixed in this update. This message was posted using BugNotificationTool from Downloads module by mudassir.fayyaz
I request you to please share the sample project reproducing the issue on your end. We will be able to investigate issue on our end on provision of requested information.