Free Support Forum -

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? (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.