We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Incorrect text spacing in file saved by Aspose.PSD (C# .NET)


We would like to be able to change the text in the source.psd file from the archive attached.However we have some issues with the target file after running:

var sourceFile = @"d:\work\psd\source.psd";
var targetFile = @"d:\work\psd\target.psd";

using (var image = (PsdImage) Image.Load(sourceFile))
    var textLayer = (TextLayer)image.Layers.Single(layer => layer is TextLayer);

    image.Save(targetFile, new PsdOptions(image));

The font spacing is incorrect in the target.psd file generated:
image.png (6.5 KB)

Note that after focusing the text using the Horizontal Type Tool, it gets back to normal:
image.png (4.0 KB)

Normally, we would try to change the text in the text layer in the zone marked with the “//…” comment but the target file would have the same issue. Is this a bug, or are we doing something wrong?

files.zip (91.0 KB)

Thanks for any help!


After observing the information provided by you it seems to be an issue and a ticket with ID PSDNET-663 has been created to further investigate and resolve the issue. This thread has been linked with the issue so that you may be notified once the issue will be fixed.

Hi. Do you have any updates on this issue?


I regret to share that at present the issue is unresolved. It is tentatively going to get resolved in Aspose.PSD for .NET 20.9 which is scheduled for end of September 2020.

Are there any updates on when this issue will be addressed?


I regret to share that at present the issue is still unresolved. We request for your patience and will share the good news with you as soon as the issue will be fixed.

The issues you have found earlier (filed as PSDNET-663) have been fixed in this update.