Hi!
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:
AsposeLicenser.LoadLicense();
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);
//...
textLayer.TextData.UpdateLayerData();
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!
Arnold